From 4e08b1df932242b25c24eac292fd33a8e415fa56 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 14 Mar 2022 13:38:02 +0800 Subject: [PATCH] drviers/syslog: correct the return value of default channel write Signed-off-by: chao.an --- drivers/syslog/syslog_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/syslog/syslog_channel.c b/drivers/syslog/syslog_channel.c index ec6cde95b9..c725590824 100644 --- a/drivers/syslog/syslog_channel.c +++ b/drivers/syslog/syslog_channel.c @@ -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