]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
debug: add bool string print helper macro
authorVictor Julien <vjulien@oisf.net>
Wed, 7 Sep 2022 06:38:07 +0000 (08:38 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 2 Mar 2023 16:32:32 +0000 (17:32 +0100)
(cherry picked from commit 0ec136621d7c5e24b38e706856c461fd5a96ef2d)

src/util-debug.h

index 1c32f4e700ddfb73cde1464b98f0116c07e22c88..5a75cd8ac969382e086a207e0f93336b552c3892 100644 (file)
@@ -553,6 +553,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,