diff --git a/drivers/syslog/syslog_write.c b/drivers/syslog/syslog_write.c index a763dd0667..f5343daa32 100644 --- a/drivers/syslog/syslog_write.c +++ b/drivers/syslog/syslog_write.c @@ -105,7 +105,7 @@ static ssize_t syslog_default_write(FAR const char *buffer, size_t buflen) } } - return buflen; + return nwritten; } /****************************************************************************