From 48c7fee534ff6568f0e1dbbecc14aa658b9eba7a Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 20 Nov 2020 16:48:40 +0900 Subject: [PATCH] include/debug.h: Apply sysloglike to _none --- include/debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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