Commit 66da9beb621dd62967924df552e7833c06b35ace

Authored by Simon Glass
1 parent 832adb212e

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/display_options.c
... ... @@ -152,7 +152,7 @@
152 152 else
153 153 x = lb.uc[i] = *(volatile uint8_t *)data;
154 154 #ifdef CONFIG_SYS_SUPPORT_64BIT_DATA
155   - printf(" %0*" PRIx64, width * 2, x);
  155 + printf(" %0*llx", width * 2, (long long)x);
156 156 #else
157 157 printf(" %0*x", width * 2, x);
158 158 #endif