mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
SPL: tiny-printf: ignore "-" modifier
tiny-printf does not know about the "-" modifier, which aligns numbers. This is used by some SPL code, but as it's purely cosmetical, we just ignore this modifier here to avoid changing correct printf strings. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagan Teki <jagan@openedev.com>
This commit is contained in:
parent
a28e1d9831
commit
1c853629d9
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ int _vprintf(struct printf_info *info, const char *fmt, va_list va)
|
|||
bool islong = false;
|
||||
|
||||
ch = *(fmt++);
|
||||
if (ch == '-')
|
||||
ch = *(fmt++);
|
||||
|
||||
if (ch == '0') {
|
||||
ch = *(fmt++);
|
||||
lz = 1;
|
||||
|
|
Loading…
Reference in a new issue