drviers/syslog: correct the return value of default channel write
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
cff3d9df7b
commit
4e08b1df93
|
@ -195,7 +195,7 @@ static ssize_t syslog_default_write(FAR struct syslog_channel_s *channel,
|
|||
nxsem_post(&g_syslog_default_sem);
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
return buflen;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue