include/debug.h: Apply sysloglike to _none

This commit is contained in:
YAMAMOTO Takashi 2020-11-20 16:48:40 +09:00 committed by Xiang Xiao
parent 8d16fe7cfd
commit 48c7fee534

View File

@ -105,7 +105,9 @@
*/ */
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# define _none(x...) /* don't call syslog while performing the compiler's format check. */
# define _none(format, ...) \
do { if (0) syslog(LOG_ERR, format, ##__VA_ARGS__); } while (0)
#else #else
# define _none (void) # define _none (void)
#endif #endif