fjpanag commented on issue #3157: URL: https://github.com/apache/incubator-nuttx/issues/3157#issuecomment-805885974
I think that the interrupt buffer behavior largely depends on your configuration. It is flushed differently, depending whether `syslog_putc()` or `syslog_write()` is used, and it may not be safe in all cases. I haven't examined it carefully though... On the other hand, the applications are definitely not protected, and the order that the prints will happen is random. Again, depending on the configuration the behavior may be slightly different, but the issue the same. I think that two things may be needed here: 1. Flush the interrupt buffer only once, and before any (thread) print. This will solve your issue, and generally the interrupts will be OK I think (of course as long as NuttX does not nest its interrupts). 2. Protect the `syslog()` itself. So every log message print is executed atomically. -- 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