arch: Replace nx_vsyslog with vsyslog

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-02-13 17:48:20 +08:00 committed by Alan Carvalho de Assis
parent 47e38eb70f
commit 17a7d612df
3 changed files with 9 additions and 11 deletions

View File

@ -39,11 +39,11 @@
int __wrap_printf(const char *fmt, ...)
{
va_list ap;
int ret;
va_start(ap, fmt);
ret = nx_vsyslog(LOG_INFO, fmt, &ap);
vsyslog(LOG_INFO, fmt, &ap);
va_end(ap);
return ret;
return 0;
}
/* stdio.h Wrapper End */

View File

@ -159,14 +159,13 @@ static inline void up_registerdump(void)
static int usbtrace_syslog(FAR const char *fmt, ...)
{
va_list ap;
int ret;
/* Let nx_vsyslog do the real work */
/* Let vsyslog do the real work */
va_start(ap, fmt);
ret = nx_vsyslog(LOG_EMERG, fmt, &ap);
vsyslog(LOG_EMERG, fmt, &ap);
va_end(ap);
return ret;
return 0;
}
static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg)

View File

@ -105,14 +105,13 @@ static void _up_assert(int errorcode)
static int usbtrace_syslog(FAR const char *fmt, ...)
{
va_list ap;
int ret;
/* Let nx_vsyslog do the real work */
/* Let vsyslog do the real work */
va_start(ap, fmt);
ret = nx_vsyslog(LOG_EMERG, fmt, &ap);
vsyslog(LOG_EMERG, fmt, &ap);
va_end(ap);
return ret;
return 0;
}
static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg)