summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-05-04 11:31:11 -0600
committerSimon Glass <sjg@chromium.org>2015-05-14 18:49:35 -0600
commit66da9beb621dd62967924df552e7833c06b35ace (patch)
treee8985474d21c1032080c590fc745e5f95efdac08
parent832adb212e8096e9db405ed37342de8a9682deaf (diff)
downloadu-boot-imx-66da9beb621dd62967924df552e7833c06b35ace.zip
u-boot-imx-66da9beb621dd62967924df552e7833c06b35ace.tar.gz
u-boot-imx-66da9beb621dd62967924df552e7833c06b35ace.tar.bz2
sandbox: Fix warning in display_options
This fixes a warning in the print_buffer() function with some toolchains. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--lib/display_options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/display_options.c b/lib/display_options.c
index 24d8f55..57fb974 100644
--- a/lib/display_options.c
+++ b/lib/display_options.c
@@ -152,7 +152,7 @@ int print_buffer(ulong addr, const void *data, uint width, uint count,
else
x = lb.uc[i] = *(volatile uint8_t *)data;
#ifdef CONFIG_SYS_SUPPORT_64BIT_DATA
- printf(" %0*" PRIx64, width * 2, x);
+ printf(" %0*llx", width * 2, (long long)x);
#else
printf(" %0*x", width * 2, x);
#endif