anchao commented on PR #16977:
URL: https://github.com/apache/nuttx/pull/16977#issuecomment-3269654344

   > > This API needs to meet the following characteristics, but the API in the 
current system cannot meet request: print "robust, synchronous, anytime, 
anywhere"
   > 
   > you can achieve all above goals by enabling only g_default_channel_ops: 
https://github.com/apache/nuttx/blob/master/drivers/syslog/syslog_channel.c#L168
 why do we need add a new API? do you plan changing all syslog in kernel to 
printk or do you think other log in kernel isn't enough important to get the 
same treatment?
   
   @xiaoxiang781216 I'm curious why you asked us to add a new API. **It's 
because you! removed the implementation of synchronous printing** :
   
   https://github.com/apache/nuttx/pull/3736
   
   <img width="919" height="575" alt="image" 
src="https://github.com/user-attachments/assets/3f4705bb-7b3a-400e-830e-f0a669e4ada9";
 />
   
   
   **syslog()** supports synchronous output at the LOG_EMERG level, Why was 
such a useful feature removed?
   
   `g_default_channel_ops` is one of multiple channel implementations. If 
`CONFIG_SYSLOG_MAX_CHANNELS > 1` and there are multiple channel implementation 
backends, it should not be used in an emergency.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to