]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: booti: adjust the print format
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 25 Aug 2024 12:26:08 +0000 (14:26 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 2 Oct 2024 19:32:56 +0000 (13:32 -0600)
All three addresses printed are in hexadecimal format, but only the
first two have the "0x" prefix. The patch aligns the format of the
"end" address with the other two by adding the "0x" prefix.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
cmd/booti.c

index 6018cbacf0a790a920bbd9c7f2f2b78ee243d9af..43e79e87201b992acf915c96f326070f06942919 100644 (file)
@@ -78,7 +78,7 @@ static int booti_start(struct bootm_info *bmi)
 
        /* Handle BOOTM_STATE_LOADOS */
        if (relocated_addr != ld) {
-               printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld,
+               printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n", ld,
                       relocated_addr, relocated_addr + image_size);
                memmove((void *)relocated_addr, (void *)ld, image_size);
        }