[U-Boot] [PATCH 04/30] dm: fdtdec: Correct a sandbox build warning

Simon Glass sjg at chromium.org
Mon Feb 15 03:16:33 CET 2016


Adjust the cast to avoid a warning when stdint.h is used.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 lib/fdtdec.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 1b1ca02..d23f187 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -124,9 +124,10 @@ fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
 
 	if (sizep) {
 		*sizep = fdtdec_get_number(prop_size, ns);
-		debug("addr=%08llx, size=%llx\n", (u64)addr, (u64)*sizep);
+		debug("addr=%08llx, size=%llx\n", (unsigned long long)addr,
+		      (unsigned long long)*sizep);
 	} else {
-		debug("addr=%08llx\n", (u64)addr);
+		debug("addr=%08llx\n", (unsigned long long)addr);
 	}
 
 	return addr;
-- 
2.7.0.rc3.207.g0ac5344



More information about the U-Boot mailing list