mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Add syslog.h; rename lib_rawprintf() to syslog()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5578 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -168,9 +168,9 @@ void usbtrace(uint16_t event, uint16_t value)
|
||||
}
|
||||
}
|
||||
#else
|
||||
/* Just print the data using lib_lowprintf */
|
||||
/* Just print the data using lowsyslog */
|
||||
|
||||
usbtrace_trprintf((trprintf_t)lib_lowprintf, event, value);
|
||||
usbtrace_trprintf((trprintf_t)lowsyslog, event, value);
|
||||
#endif
|
||||
}
|
||||
irqrestore(flags);
|
||||
|
||||
@@ -199,9 +199,9 @@
|
||||
#ifdef CONFIG_CPP_HAVE_VARARGS
|
||||
# ifdef CONFIG_DEBUG
|
||||
# ifdef CONFIG_ARCH_LOWPUTC
|
||||
# define dbgprintf(format, arg...) lib_lowprintf(format, ##arg)
|
||||
# define dbgprintf(format, arg...) lowsyslog(format, ##arg)
|
||||
# else
|
||||
# define dbgprintf(format, arg...) lib_rawprintf(format, ##arg)
|
||||
# define dbgprintf(format, arg...) syslog(format, ##arg)
|
||||
# endif
|
||||
# else
|
||||
# define dbgprintf(x...)
|
||||
@@ -209,9 +209,9 @@
|
||||
#else
|
||||
# ifdef CONFIG_DEBUG
|
||||
# ifdef CONFIG_ARCH_LOWPUTC
|
||||
# define dbgprintf lib_lowprintf
|
||||
# define dbgprintf lowsyslog
|
||||
# else
|
||||
# define dbgprintf lib_rawprintf
|
||||
# define dbgprintf syslog
|
||||
# endif
|
||||
# else
|
||||
# define dbgprintf (void)
|
||||
|
||||
Reference in New Issue
Block a user