This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 5fb29e59e6b27ecb8a8cf3328787db3f59772ab3 Author: chao an <[email protected]> AuthorDate: Mon Nov 2 11:31:16 2026 +0800 libc/stdio: Batch symbol name writes When printing %pS/%ps symbols, emit the resolved symbol name with one stream write instead of calling putc for every character. This keeps the debug symbol path consistent with the other batched string output paths. Signed-off-by: chao an <[email protected]> --- libs/libc/stream/lib_libvsprintf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/libc/stream/lib_libvsprintf.c b/libs/libc/stream/lib_libvsprintf.c index b471197210e..282160ba705 100644 --- a/libs/libc/stream/lib_libvsprintf.c +++ b/libs/libc/stream/lib_libvsprintf.c @@ -1293,10 +1293,7 @@ str_lpad: if (symbol != NULL) { pnt = symbol->sym_name; - while (*pnt != '\0') - { - stream_putc(*pnt++, stream); - } + stream_puts(pnt, strlen(pnt), stream); if (c == 'S') {
