fjpanag commented on a change in pull request #3050: URL: https://github.com/apache/incubator-nuttx/pull/3050#discussion_r593923901
########## File path: drivers/syslog/syslog_write.c ########## @@ -116,13 +123,21 @@ static ssize_t syslog_default_write(FAR const char *buffer, size_t buflen) ssize_t syslog_write(FAR const char *buffer, size_t buflen) { #ifdef CONFIG_SYSLOG_INTBUFFER + int i; + if (!up_interrupt_context() && !sched_idletask()) { /* Flush any characters that may have been added to the interrupt * buffer. */ - syslog_flush_intbuffer(g_syslog_channel, false); + for (i = 0; i < CONFIG_SYSLOG_MAX_CHANNELS; i++) + { + if (g_syslog_channel[i] == NULL) + break; Review comment: done ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org