syslog: replace lib_sprintf to lib_sprintf_internal
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
fe9251b546
commit
6a0ffa5c52
@ -150,7 +150,7 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap)
|
|||||||
defined(CONFIG_SYSLOG_PRIORITY) || defined(CONFIG_SYSLOG_PREFIX) || \
|
defined(CONFIG_SYSLOG_PRIORITY) || defined(CONFIG_SYSLOG_PREFIX) || \
|
||||||
defined(CONFIG_SYSLOG_PROCESS_NAME)
|
defined(CONFIG_SYSLOG_PROCESS_NAME)
|
||||||
|
|
||||||
ret = lib_sprintf(&stream.public,
|
ret = lib_sprintf_internal(&stream.public,
|
||||||
#if defined(CONFIG_SYSLOG_COLOR_OUTPUT)
|
#if defined(CONFIG_SYSLOG_COLOR_OUTPUT)
|
||||||
/* Reset the terminal style. */
|
/* Reset the terminal style. */
|
||||||
|
|
||||||
@ -209,7 +209,8 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap)
|
|||||||
, date_buf
|
, date_buf
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
, (uintmax_t)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC
|
, (uintmax_t)ts.tv_sec
|
||||||
|
, ts.tv_nsec / NSEC_PER_USEC
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -252,7 +253,7 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap)
|
|||||||
|
|
||||||
/* Generate the output */
|
/* Generate the output */
|
||||||
|
|
||||||
ret += lib_vsprintf(&stream.public, fmt, *ap);
|
ret += lib_vsprintf_internal(&stream.public, fmt, *ap);
|
||||||
|
|
||||||
if (stream.last_ch != '\n')
|
if (stream.last_ch != '\n')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user