mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
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>
This commit is contained in:
parent
832adb212e
commit
66da9beb62
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ int print_buffer(ulong addr, const void *data, uint width, uint count,
|
||||||
else
|
else
|
||||||
x = lb.uc[i] = *(volatile uint8_t *)data;
|
x = lb.uc[i] = *(volatile uint8_t *)data;
|
||||||
#ifdef CONFIG_SYS_SUPPORT_64BIT_DATA
|
#ifdef CONFIG_SYS_SUPPORT_64BIT_DATA
|
||||||
printf(" %0*" PRIx64, width * 2, x);
|
printf(" %0*llx", width * 2, (long long)x);
|
||||||
#else
|
#else
|
||||||
printf(" %0*x", width * 2, x);
|
printf(" %0*x", width * 2, x);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue