From 492b728f9f5af73ee407d800170935429d8dcf90 Mon Sep 17 00:00:00 2001 From: Oliver Graute <oliver.graute@kococonnector.com> Date: Fri, 6 Nov 2020 09:09:30 +0100 Subject: [PATCH] imx: ahab: fix compiler warnings in debug MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 <oliver.graute@kococonnector.com> Cc: Stefano Babic <sbabic@denx.de> Cc: uboot-imx <uboot-imx@nxp.com> --- arch/arm/mach-imx/imx8/ahab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c index bbdced5513..9df7474139 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), -- 2.39.5