]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sandbox: Fix warning in display_options
authorSimon Glass <sjg@chromium.org>
Mon, 4 May 2015 17:31:11 +0000 (11:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:39:40 +0000 (22:39 +0200)
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>
lib/display_options.c

index 24d8f554e51661d827f4bcdccedc83c40a8aba1b..57fb9741dac1023b06a3939f16268230f78eb6f2 100644 (file)
@@ -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