mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +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
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue