Boot: Fix format specifiers
Fix ARMCLANG build error on Musca-A due to
printf format specifiers.
Change-Id: I21751975659b0ccc0bf98f04fad1b14d1d333b8c
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/bl2/ext/mcuboot/bootutil/src/loader.c b/bl2/ext/mcuboot/bootutil/src/loader.c
index c49fd31..30e2611 100644
--- a/bl2/ext/mcuboot/bootutil/src/loader.c
+++ b/bl2/ext/mcuboot/bootutil/src/loader.c
@@ -1727,7 +1727,7 @@
uint32_t img_sz;
if (dst % 4 != 0) {
- BOOT_LOG_INF("Cannot copy the image to the SRAM address 0x%lx "
+ BOOT_LOG_INF("Cannot copy the image to the SRAM address 0x%x "
"- the load address must be aligned with 4 bytes due to SRAM "
"restrictions", dst);
return BOOT_EBADARGS;
@@ -1851,15 +1851,15 @@
rc = boot_copy_image_to_sram(slot, newest_image_header);
if (rc != 0) {
rc = BOOT_EBADIMAGE;
- BOOT_LOG_INF("Could not copy image from slot 0x%lx in "
- "the Flash to load address 0x%lx in SRAM, "
+ BOOT_LOG_INF("Could not copy image from slot 0x%x in "
+ "the Flash to load address 0x%x in SRAM, "
"aborting..",
slot,
newest_image_header->ih_load_addr);
goto out;
} else {
BOOT_LOG_INF("Image has been copied from slot %d in flash to "
- "SRAM address 0x%lx",
+ "SRAM address 0x%x",
slot,
newest_image_header->ih_load_addr);
}
@@ -1873,7 +1873,7 @@
goto out;
}
- BOOT_LOG_INF("Booting image from SRAM at address 0x%lx",
+ BOOT_LOG_INF("Booting image from SRAM at address 0x%x",
newest_image_header->ih_load_addr);
} else {
#endif /* MCUBOOT_RAM_LOADING */