mirror of
https://github.com/apache/nuttx.git
synced 2026-10-05 05:07:48 +00:00
arch: Replace nx_vsyslog with vsyslog
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
47e38eb70f
commit
17a7d612df
3 changed files with 9 additions and 11 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue