diff --git a/include/debug.h b/include/debug.h index dcebe4c099..e3c16db05c 100644 --- a/include/debug.h +++ b/include/debug.h @@ -105,7 +105,9 @@ */ #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 # define _none (void) #endif