mirror of
https://github.com/riscv-software-src/opensbi
synced 2025-11-27 06:10:18 +00:00
Support unsigned long in sbi_printf
Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
parent
84971c0bc0
commit
1d4e36edf8
@ -293,7 +293,12 @@ static int print(char **out, u32 *out_len, const char *format, va_list args)
|
||||
}
|
||||
continue;
|
||||
} else if (*format == 'l') {
|
||||
if (*(format + 1) == 'x') {
|
||||
if (*(format + 1) == 'u') {
|
||||
format += 1;
|
||||
pc += printi(out, out_len,
|
||||
va_arg(args, unsigned long),
|
||||
10, 0, width, flags, 'a');
|
||||
} else if (*(format + 1) == 'x') {
|
||||
format += 1;
|
||||
pc += printi(out, out_len,
|
||||
va_arg(args, unsigned long),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user