xiaoxiang781216 commented on code in PR #7841: URL: https://github.com/apache/nuttx/pull/7841#discussion_r1051032792
########## drivers/note/note_driver.c: ########## @@ -416,203 +474,346 @@ void sched_note_start(FAR struct tcb_s *tcb) return; } - /* Copy the task name (if possible) and get the length of the note */ + for (driver = g_note_drivers; *driver; driver++) + { + if (note_start(*driver, tcb)) + { + continue; + } + + if (!formatted) Review Comment: let's check add isn't null before formatting in all sched_note_xxx function. and remove the null check in note_add. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org