diff options
| author | Xiang W <[email protected]> | 2023-07-10 00:02:24 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-07-12 09:58:00 +0530 |
| commit | 458fa742663f889033b87b6d866f68fbc1c22eb4 (patch) | |
| tree | 858c60f9b5d31e5169a3ba6ddcb9c331492d7135 | |
| parent | 40dac06e3c3c4056bf47d295c6fd85856556d998 (diff) | |
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 <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
| -rw-r--r-- | lib/sbi/sbi_console.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sbi/sbi_console.c b/lib/sbi/sbi_console.c index 20fe65a3..4229e7e3 100644 --- a/lib/sbi/sbi_console.c +++ b/lib/sbi/sbi_console.c @@ -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; |
