From 66da9beb621dd62967924df552e7833c06b35ace Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 4 May 2015 11:31:11 -0600 Subject: sandbox: Fix warning in display_options This fixes a warning in the print_buffer() function with some toolchains. Signed-off-by: Simon Glass Reviewed-by: Joe Hershberger --- lib/display_options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/display_options.c b/lib/display_options.c index 24d8f554e5..57fb9741da 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 -- cgit v1.2.1