mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
Support unsigned long in sbi_printf
Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -293,7 +293,12 @@ static int print(char **out, u32 *out_len, const char *format, va_list args)
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
} else if (*format == 'l') {
|
} 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;
|
format += 1;
|
||||||
pc += printi(out, out_len,
|
pc += printi(out, out_len,
|
||||||
va_arg(args, unsigned long),
|
va_arg(args, unsigned long),
|
||||||
|
Reference in New Issue
Block a user