Skip to content

Commit

Permalink
syslog: Remove the lock from syslog_default_write
Browse files Browse the repository at this point in the history
to avoid the problem when is called from interrupt/signal handler

Signed-off-by: Xiang Xiao <[email protected]>
  • Loading branch information
xiaoxiang781216 committed Jul 14, 2022
1 parent 8521cbe commit 311327d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/syslog/syslog_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,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 sem = SEM_INITIALIZER(1);

nxsem_wait(&sem);
up_puts(buffer);
nxsem_post(&sem);
#endif

UNUSED(channel);
Expand Down

0 comments on commit 311327d

Please sign in to comment.