syslog: Code outside libc shouldn't call nx_vsyslog directly

since nx_vsyslog is the implementation detail

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-05-07 00:07:34 +08:00
committed by patacongo
parent 6b1f94ee49
commit 94bb2e05bb
21 changed files with 62 additions and 83 deletions
+3 -4
View File
@@ -103,14 +103,13 @@ static void _up_assert(int errorcode) /* noreturn_function */
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 OK;
}
static int assert_tracecallback(struct usbtrace_s *trace, void *arg)