From 0aaec69303f3ff1d56a180e107995585c89eabf7 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Tue, 21 May 2024 17:21:53 +0530 Subject: [PATCH] flow: use debug validate macro --- src/flow.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/flow.h b/src/flow.h index 9905c410b2..d633554243 100644 --- a/src/flow.h +++ b/src/flow.h @@ -33,6 +33,7 @@ typedef struct FlowStorageId FlowStorageId; #include "util-exception-policy-types.h" #include "util-var.h" #include "util-optimize.h" +#include "util-validate.h" #include "app-layer-protos.h" /* Part of the flow structure, so we declare it here. @@ -636,12 +637,9 @@ static inline void FlowSetNoPayloadInspectionFlag(Flow *f) static inline void FlowReference(Flow **d, Flow *f) { if (likely(f != NULL)) { -#ifdef DEBUG_VALIDATION - BUG_ON(*d == f); -#else + DEBUG_VALIDATE_BUG_ON(*d == f); if (*d == f) return; -#endif *d = f; } } -- 2.47.2