summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2023-06-15 13:09:06 +0300
committerStefano Babic <sbabic@denx.de>2023-07-13 12:29:40 +0300
commit914ede697876295e5554133e74e03d68e11ed7c9 (patch)
treecc4cbd804193e4477173372845e6b37c39a8294a /arch
parentd3ee9dbd5984321d4a2932e19a59f455d8d90817 (diff)
downloadu-boot-914ede697876295e5554133e74e03d68e11ed7c9.tar.xz
imx: parse-container: fix build warning
Fix build warning: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Wformat=] printf("can't find memreg for image %d load address 0x%x, error %d\n", warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘sc_faddr_t’ {aka ‘long long unsigned int’} [-Wformat=] debug("memreg %u 0x%lx -- 0x%lx\n", mr, start, end); Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-imx/parse-container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/parse-container.c b/arch/arm/mach-imx/parse-container.c
index f7582825d6..a0d1eb3831 100644
--- a/arch/arm/mach-imx/parse-container.c
+++ b/arch/arm/mach-imx/parse-container.c
@@ -35,14 +35,14 @@ static int authenticate_image(struct boot_img_t *img, int image_index)
ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE) - 1);
if (err) {
- printf("can't find memreg for image %d load address 0x%x, error %d\n",
+ printf("can't find memreg for image %d load address 0x%llx, error %d\n",
image_index, img->dst & ~(CONFIG_SYS_CACHELINE_SIZE - 1), err);
return -ENOMEM;
}
err = sc_rm_get_memreg_info(-1, mr, &start, &end);
if (!err)
- debug("memreg %u 0x%x -- 0x%x\n", mr, start, end);
+ debug("memreg %u 0x%llx -- 0x%llx\n", mr, start, end);
err = sc_rm_set_memreg_permissions(-1, mr,
SECO_PT, SC_RM_PERM_FULL);