[U-Boot] [PATCH 13/13] fdt: Build warning fixes for 64-bit
Thierry Reding
thierry.reding at gmail.com
Fri Mar 20 12:41:28 CET 2015
From: Thierry Reding <treding at nvidia.com>
Use the %lx printf specifier to print unsigned long variables to avoid a
build warning on 64-bit.
Cc: Simon Glass <sjg at chromium.org>
Signed-off-by: Thierry Reding <treding at nvidia.com>
---
lib/fdtdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 1a0268a3f9f5..0776c3004cbd 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -103,8 +103,8 @@ fdt_addr_t fdtdec_get_addr_size(const void *blob, int node,
size = (fdt_size_t *)((char *)cell +
sizeof(fdt_addr_t));
*sizep = fdt_size_to_cpu(*size);
- debug("addr=%08lx, size=%08x\n",
- (ulong)addr, *sizep);
+ debug("addr=%08lx, size=%08lx\n",
+ (ulong)addr, (ulong)*sizep);
} else {
debug("%08lx\n", (ulong)addr);
}
--
2.3.2
More information about the U-Boot
mailing list