libc/printf: fix "%pS" length error

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-06-07 15:14:31 +08:00 committed by Petro Karashchenko
parent 019b7a39d4
commit 135959eb83

View File

@ -1166,7 +1166,9 @@ str_lpad:
if (c == 'S')
{
sprintf_internal(stream, "+%#tx/%#zx",
total_len +=
sprintf_internal(stream,
"+%#tx/%#zx",
addr - symbol->sym_value,
symbolsize);
}