From 0ec136621d7c5e24b38e706856c461fd5a96ef2d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 7 Sep 2022 08:38:07 +0200 Subject: [PATCH] debug: add bool string print helper macro --- src/util-debug.h | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.47.2