From: Thierry Reding <tred...@nvidia.com>

Use the %lx printf specifier to print unsigned long variables to avoid a
build warning on 64-bit.

Cc: Simon Glass <s...@chromium.org>
Signed-off-by: Thierry Reding <tred...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to