From 1fa13e4b810e5f68d228880f4bff6a34cc1f9b69 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 1 Mar 2024 13:30:09 +0100 Subject: [PATCH] util/var: remove printf; add assert --- src/util-var.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util-var.c b/src/util-var.c index 8a2df63f1f..37b0032eb7 100644 --- a/src/util-var.c +++ b/src/util-var.c @@ -33,7 +33,7 @@ #include "pkt-var.h" #include "host-bit.h" #include "ippair-bit.h" - +#include "util-validate.h" #include "util-debug.h" void XBitFree(XBit *fb) @@ -81,7 +81,8 @@ void GenericVarFree(GenericVar *gv) } default: { - printf("ERROR: GenericVarFree unknown type %" PRIu32 "\n", gv->type); + SCLogDebug("GenericVarFree unknown type %" PRIu32, gv->type); + DEBUG_VALIDATE_BUG_ON(1); break; } }