]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootm: adjust the print format
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 25 Aug 2024 12:26:07 +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>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
boot/bootm.c

index a61bbcfb45c25df4693a1b1c447fc9e803bae206..16a43d519a8aa968c77e9a3903e579348f3feb25 100644 (file)
@@ -684,7 +684,7 @@ static int bootm_load_os(struct bootm_headers *images, int boot_progress)
 
                /* Handle BOOTM_STATE_LOADOS */
                if (relocated_addr != load) {
-                       printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n",
+                       printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n",
                               load, relocated_addr,
                               relocated_addr + image_size);
                        memmove((void *)relocated_addr, load_buf, image_size);