display_options: Use USE_TINY_PRINTF for SPL check

At present this code uses a simple printf() format if running in SPL. But
SPL can use the full printf. Use USE_TINY_PRINTF instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2021-01-13 20:29:50 -07:00 committed by Tom Rini
parent 0a2aaab0b6
commit ac42fe539c
1 changed files with 4 additions and 5 deletions

View File

@ -169,11 +169,10 @@ int print_buffer(ulong addr, const void *data, uint width, uint count,
x = lb.us[i] = *(volatile uint16_t *)data; x = lb.us[i] = *(volatile uint16_t *)data;
else else
x = lb.uc[i] = *(volatile uint8_t *)data; x = lb.uc[i] = *(volatile uint8_t *)data;
#if defined(CONFIG_SPL_BUILD) if (CONFIG_IS_ENABLED(USE_TINY_PRINTF))
printf(" %x", (uint)x); printf(" %x", (uint)x);
#else else
printf(" %0*lx", width * 2, x); printf(" %0*lx", width * 2, x);
#endif
data += width; data += width;
} }