mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
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:
@@ -111,14 +111,13 @@ static void up_stackdump(uint32_t sp, uint32_t stack_base)
|
||||
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(FAR struct usbtrace_s *trace, FAR void *arg)
|
||||
|
||||
Reference in New Issue
Block a user