summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Graute <[email protected]>2020-11-06 09:09:30 +0100
committerStefano Babic <[email protected]>2020-12-06 15:31:36 +0100
commit492b728f9f5af73ee407d800170935429d8dcf90 (patch)
treec551aeee7974999b9ae8e688c3c733d2ea06a92d
parentf4433e7f27d36b3b81e23c0e8139fe28a6e97951 (diff)
imx: ahab: fix compiler warnings in debug
arch/arm/mach-imx/imx8/ahab.c: In function ‘authenticate_os_container’: arch/arm/mach-imx/imx8/ahab.c:96:9: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 9 has type ‘ulong {aka long unsigned int}’ [-Wformat=] debug("img %d, dst 0x%x, src 0x%x, size 0x%x\n", Fix those by using "%lu" specified. Signed-off-by: Oliver Graute <[email protected]> Cc: Stefano Babic <[email protected]> Cc: uboot-imx <[email protected]>
-rw-r--r--arch/arm/mach-imx/imx8/ahab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c
index bbdced55135..9df74741397 100644
--- a/arch/arm/mach-imx/imx8/ahab.c
+++ b/arch/arm/mach-imx/imx8/ahab.c
@@ -92,7 +92,7 @@ int authenticate_os_container(ulong addr)
sizeof(struct container_hdr) +
i * sizeof(struct boot_img_t));
- debug("img %d, dst 0x%x, src 0x%x, size 0x%x\n",
+ debug("img %d, dst 0x%x, src 0x%lux, size 0x%x\n",
i, (uint32_t) img->dst, img->offset + addr, img->size);
memcpy((void *)img->dst, (const void *)(img->offset + addr),