]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: booti: convert the debug print about image move to printf
authorTero Kristo <t-kristo@ti.com>
Fri, 12 Jun 2020 12:41:21 +0000 (15:41 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 17 Jul 2020 12:51:01 +0000 (08:51 -0400)
Moving of the OS image may have some nasty side effects like corrupting
DTB. Convert the current debug print to printf so that the relocation of
the OS is always obvious to the user.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
cmd/booti.c

index bfc07428e6eb883f644710f45d4f67e93760f6aa..76d1255ec584503da09140ca87e0d5d08c9388a9 100644 (file)
@@ -79,7 +79,8 @@ static int booti_start(struct cmd_tbl *cmdtp, int flag, int argc,
 
        /* Handle BOOTM_STATE_LOADOS */
        if (relocated_addr != ld) {
-               debug("Moving Image from 0x%lx to 0x%lx\n", ld, relocated_addr);
+               printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld,
+                      relocated_addr, relocated_addr + image_size);
                memmove((void *)relocated_addr, (void *)ld, image_size);
        }