imx: ahab: Fix compiler warnings in printf
authorOliver Graute <oliver.graute@kococonnector.com>
Fri, 6 Nov 2020 08:09:31 +0000 (09:09 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 6 Dec 2020 14:31:36 +0000 (15:31 +0100)
arch/arm/mach-imx/imx8/ahab.c:110:63: warning: format ‘%x’ expects
argument of type ‘unsigned int’, but argument 2 has type ‘u64 {aka long
long unsigned int}’ [-Wformat=]

Fix those by using %llx

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

index 5dbe1d5..bbdced5 100644 (file)
@@ -106,7 +106,7 @@ int authenticate_os_container(ulong addr)
                /* Find the memreg and set permission for seco pt */
                err = sc_rm_find_memreg(-1, &mr, s, e);
                if (err) {
-                       printf("Error: can't find memreg for image load address 0x%x, error %d\n", img->dst, err);
+                       printf("Error: can't find memreg for image load address 0x%llx, error %d\n", img->dst, err);
                        ret = -ENOMEM;
                        goto exit;
                }