From: Otto Moerbeek Date: Tue, 17 Jan 2023 14:14:45 +0000 (+0100) Subject: Fix VLOG in !rec case, gcc does not like #define X #error ... X-Git-Tag: dnsdist-1.8.0-rc1~83^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5d823c9a8313a5b27ec1883b719c2555814d433;p=thirdparty%2Fpdns.git Fix VLOG in !rec case, gcc does not like #define X #error ... --- diff --git a/pdns/logger.hh b/pdns/logger.hh index 2f24bdf9cd..bbbc8cd50b 100644 --- a/pdns/logger.hh +++ b/pdns/logger.hh @@ -169,7 +169,7 @@ Logger& getLogger(); // The types below are used by rec, which can log to g_log (general logging) or a string stream // (trace-regexp). We feed an OptLog object to the code that should not know anything about this -// That code shold then log using VLOG +// That code should then log using VLOG struct LogVariant { @@ -182,7 +182,7 @@ using OptLog = std::optional; #ifndef RECURSOR // Originally there was a flag but is was never set from !RECURSOR -#define VLOG(log, x) #error VLOG only works in recursor +#define VLOG(log, x) VLOG only works in recursor #else #define VLOG(log, x) \ if (log) { \