From: Jonathan Perkins Date: Fri, 21 Jul 2023 18:27:37 +0000 (-0400) Subject: napatech: emit HBA deprecation only once X-Git-Tag: suricata-7.0.4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05640d84dc3fd7b5780355bf81e428bce7d8abe8;p=thirdparty%2Fsuricata.git napatech: emit HBA deprecation only once Issue: 6313 This commit removes duplicate HBA deprecation messages from being emitted. --- 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; }