libc: Keep printf("%pS", p) behavior consistent
When ALLSYMS is not turned on, %pS will be treated as %p Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
e710ae5daf
commit
35ae47788b
@ -1145,10 +1145,10 @@ str_lpad:
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ALLSYMS
|
||||
case 'S':
|
||||
case 's':
|
||||
{
|
||||
#ifdef CONFIG_ALLSYMS
|
||||
FAR const struct symtab_s *symbol;
|
||||
FAR void *addr = (FAR void *)(uintptr_t)x;
|
||||
size_t symbolsize;
|
||||
@ -1171,10 +1171,9 @@ str_lpad:
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
default:
|
||||
fmt_ungetc(fmt);
|
||||
|
Loading…
Reference in New Issue
Block a user