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 2022/03/19 18:00:10 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a change in pull request #5803: syslog: Change g_syslog_default_sem to static function variable

pkarashchenko commented on a change in pull request #5803:
URL: https://github.com/apache/incubator-nuttx/pull/5803#discussion_r830510753



##########
File path: drivers/syslog/syslog_channel.c
##########
@@ -184,6 +180,7 @@ static ssize_t syslog_default_write(FAR struct syslog_channel_s *channel,
                                     FAR const char *buffer, size_t buflen)
 {
 #if defined(CONFIG_ARCH_LOWPUTC)
+  static sem_t g_syslog_default_sem = SEM_INITIALIZER(1);

Review comment:
       ```suggestion
     static sem_t default_sem = SEM_INITIALIZER(1);
   ```
   




-- 
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