Skip to content
Snippets Groups Projects
Commit 66da9beb authored by Simon Glass's avatar Simon Glass
Browse files

sandbox: Fix warning in display_options


This fixes a warning in the print_buffer() function with some toolchains.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 832adb21
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment