mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
libc/syslogstream: fix nxstyle error
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
ca290e85ea
commit
1cc3fd59ed
@@ -197,7 +197,7 @@ static int syslogstream_puts(FAR struct lib_outstream_s *this,
|
|||||||
{
|
{
|
||||||
FAR struct lib_syslogstream_s *stream =
|
FAR struct lib_syslogstream_s *stream =
|
||||||
(FAR struct lib_syslogstream_s *)this;
|
(FAR struct lib_syslogstream_s *)this;
|
||||||
int ret = 0;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(stream != NULL);
|
DEBUGASSERT(stream != NULL);
|
||||||
if (len <= 0)
|
if (len <= 0)
|
||||||
@@ -205,7 +205,7 @@ static int syslogstream_puts(FAR struct lib_outstream_s *this,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream->last_ch = ((FAR const char *)buff)[len -1];
|
stream->last_ch = ((FAR const char *)buff)[len - 1];
|
||||||
|
|
||||||
#ifdef CONFIG_SYSLOG_BUFFER
|
#ifdef CONFIG_SYSLOG_BUFFER
|
||||||
/* Do we have an IO buffer? */
|
/* Do we have an IO buffer? */
|
||||||
@@ -214,7 +214,7 @@ static int syslogstream_puts(FAR struct lib_outstream_s *this,
|
|||||||
{
|
{
|
||||||
/* Add the incoming string to the buffer */
|
/* Add the incoming string to the buffer */
|
||||||
|
|
||||||
ret += syslogstream_addstring(stream, buff, len);
|
ret = syslogstream_addstring(stream, buff, len);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user