From 05640d84dc3fd7b5780355bf81e428bce7d8abe8 Mon Sep 17 00:00:00 2001 From: Jonathan Perkins Date: Fri, 21 Jul 2023 14:27:37 -0400 Subject: [PATCH] napatech: emit HBA deprecation only once Issue: 6313 This commit removes duplicate HBA deprecation messages from being emitted. --- src/runmode-napatech.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/runmode-napatech.c b/src/runmode-napatech.c index cb8f560ea3..fe02124379 100644 --- a/src/runmode-napatech.c +++ b/src/runmode-napatech.c @@ -200,7 +200,12 @@ static void *NapatechConfigParser(const char *device) if (ConfGetInt("napatech.hba", &conf->hba) == 0) { conf->hba = -1; } else { - SCLogWarning("Napatech Host Buffer Allocation (hba) will be deprecated in Suricata v7.0."); + static bool warn_once = false; + if (!warn_once) { + SCLogWarning( + "Napatech Host Buffer Allowance (hba) will be deprecated in Suricata v8.0."); + warn_once = true; + } } return (void *) conf; } -- 2.47.2