From: Simon Glass Date: Mon, 29 Feb 2016 22:25:37 +0000 (-0700) Subject: dm: fdtdec: Correct a sandbox build warning X-Git-Tag: v2016.05-rc1~420^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd30d2c608b63661d185ba3ce0178dbb2fcf3b45;p=pandora-u-boot.git dm: fdtdec: Correct a sandbox build warning Adjust the cast to avoid a warning when stdint.h is used. Signed-off-by: Simon Glass Tested-by: Stephen Warren --- diff --git a/lib/fdtdec.c b/lib/fdtdec.c index b361a2579f1..0cb255f763c 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;