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 42948eade0a582bbddbcfb9717b767eeab63b897 Author: yinshengkai <[email protected]> AuthorDate: Mon Mar 24 17:42:49 2025 +0800 note: fix sched_note_printf newline error noteram_dump_printf() ends the line only in the branch that prints the address of the format string and the arguments decoded from npt_type. A note printed through its format string (npt_type == 0) gets no newline, so the next record of the text dump continues on the same line. Write the newline in noteram_dump_one() after every printf note instead. Assisted-by: Kiro:claude-opus-5-5 Signed-off-by: yinshengkai <[email protected]> --- drivers/note/noteram_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/note/noteram_driver.c b/drivers/note/noteram_driver.c index 81dba7a9d04..9a7e2eb915e 100644 --- a/drivers/note/noteram_driver.c +++ b/drivers/note/noteram_driver.c @@ -957,8 +957,6 @@ static int noteram_dump_printf(FAR struct lib_outstream_s *s, } ret += lib_bsprintf(s, fmt, note->npt_data); - lib_stream_putc(s, '\n'); - ret++; } return ret; @@ -1224,6 +1222,8 @@ static int noteram_dump_one(FAR uint8_t *p, FAR struct lib_outstream_s *s, ret += noteram_dump_header(s, &npt->npt_cmn, ctx); ret += lib_sprintf(s, "tracing_mark_write: I|%d|", pid); ret += noteram_dump_printf(s, npt); + lib_stream_putc(s, '\n'); + ret++; } break; case NOTE_DUMP_BEGIN:
