libc/printf: fix "%pS" length error
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
019b7a39d4
commit
135959eb83
@ -1166,7 +1166,9 @@ str_lpad:
|
|||||||
|
|
||||||
if (c == 'S')
|
if (c == 'S')
|
||||||
{
|
{
|
||||||
sprintf_internal(stream, "+%#tx/%#zx",
|
total_len +=
|
||||||
|
sprintf_internal(stream,
|
||||||
|
"+%#tx/%#zx",
|
||||||
addr - symbol->sym_value,
|
addr - symbol->sym_value,
|
||||||
symbolsize);
|
symbolsize);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user