summaryrefslogtreecommitdiffstats
path: root/lib/fdtdec.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-29 15:25:37 -0700
committerSimon Glass <sjg@chromium.org>2016-03-14 15:34:50 -0600
commitfd30d2c608b63661d185ba3ce0178dbb2fcf3b45 (patch)
tree45c8e26c7a6502a422ab296d4c6542a05fe17b23 /lib/fdtdec.c
parentf8d6165d4b45122800cf7b2edf9eca1a464194fd (diff)
downloadtalos-obmc-uboot-fd30d2c608b63661d185ba3ce0178dbb2fcf3b45.tar.gz
talos-obmc-uboot-fd30d2c608b63661d185ba3ce0178dbb2fcf3b45.zip
dm: fdtdec: Correct a sandbox build warning
Adjust the cast to avoid a warning when stdint.h is used. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'lib/fdtdec.c')
-rw-r--r--lib/fdtdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index b361a2579f..0cb255f763 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -123,9 +123,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;
OpenPOWER on IntegriCloud