From 9d8aa448b59274f94096664e12e45edaefa5c2fa Mon Sep 17 00:00:00 2001 From: Jianqun Xu Date: Wed, 30 Dec 2020 08:36:09 +0800 Subject: [PATCH] common: fix hex print format to %#010lx Before this patch: Flattened Device Tree blob at 08300000 Booting using the fdt blob at 0x8300000 With this patch: Flattened Device Tree blob at 0x08300000 Booting using the fdt blob at 0x08300000 Change-Id: Ibd5f1cfc07791eff829512d1820eb3c8c0caa007 Signed-off-by: Jianqun Xu --- common/image-fdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/image-fdt.c b/common/image-fdt.c index ed0e57dbc9..89c20a842c 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -483,7 +483,7 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch, * FDT blob */ debug("* fdt: raw FDT blob\n"); - printf("## Flattened Device Tree blob at %08lx\n", + printf("## Flattened Device Tree blob at %#010lx\n", (long)fdt_addr); } break; @@ -492,7 +492,7 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch, goto no_fdt; } - printf(" Booting using the fdt blob at %#08lx\n", fdt_addr); + printf(" Booting using the fdt blob at %#010lx\n", fdt_addr); fdt_blob = map_sysmem(fdt_addr, 0); } else if (images->legacy_hdr_valid && image_check_type(&images->legacy_hdr_os_copy,