From: Victor Julien Date: Wed, 7 Sep 2022 06:38:07 +0000 (+0200) Subject: debug: add bool string print helper macro X-Git-Tag: suricata-7.0.0-beta1~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ec136621d7c5e24b38e706856c461fd5a96ef2d;p=thirdparty%2Fsuricata.git debug: add bool string print helper macro --- diff --git a/src/util-debug.h b/src/util-debug.h index 2e4a69f34e..bbef901bc4 100644 --- a/src/util-debug.h +++ b/src/util-debug.h @@ -551,6 +551,8 @@ void SCLogErr(int x, const char *file, const char *func, const int line, #define FatalErrorOnInit(x, ...) FatalError(x, __VA_ARGS__) #endif +#define BOOL2STR(b) (b) ? "true" : "false" + SCLogInitData *SCLogAllocLogInitData(void); SCLogOPIfaceCtx *SCLogInitOPIfaceCtx(const char *, const char *, int,