mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +00:00
lib: sbi: Add ' ' '\'' flags for print
The space flag is used to add a space before positive numbers, and apostrophe is used to print the thousand separator. Add code to ignore these two flags Signed-off-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
40dac06e3c
commit
458fa74266
1 changed files with 4 additions and 0 deletions
|
@ -288,6 +288,10 @@ static int print(char **out, u32 *out_len, const char *format, va_list args)
|
|||
case '0':
|
||||
flags |= PAD_ZERO;
|
||||
break;
|
||||
case ' ':
|
||||
case '\'':
|
||||
/* Ignored flags, do nothing */
|
||||
break;
|
||||
default:
|
||||
flags_done = true;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue