You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/09/21 10:44:03 UTC

[GitHub] [incubator-nuttx] gustavonihei commented on pull request #4566: drivers/syslog: Call up_puts in syslog_default_write instad up_putc

gustavonihei commented on pull request #4566:
URL: https://github.com/apache/incubator-nuttx/pull/4566#issuecomment-923858972


   According to the [syslog documentation](https://pubs.opengroup.org/onlinepubs/007904975/functions/syslog.html):
   
   > The message body is generated from the message and following arguments in the same manner as if these were arguments to printf()
   
   and according to the [printf` documentation](https://en.cppreference.com/w/c/io/fprintf):
   
   > format - pointer to a null-terminated multibyte string specifying how to interpret the data
   
   So, if my analysis is correct, the `syslog` API assumes that the provided string buffer is always NUL-terminated.
   
   


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org