]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/mpm: output cleanups
authorVictor Julien <vjulien@oisf.net>
Sat, 17 Dec 2022 06:25:12 +0000 (07:25 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 20 Dec 2022 07:51:33 +0000 (08:51 +0100)
src/detect-engine-mpm.c

index 9d47838274403d500d6089262e65e07a89f8f686..e7b2b45e56f120303747f32cc8e45bb721e76c6c 100644 (file)
@@ -243,14 +243,10 @@ void DetectMpmInitializeAppMpms(DetectEngineCtx *de_ctx)
             shared = confshared;
 
         if (shared == 0) {
-            if (!(de_ctx->flags & DE_QUIET)) {
-                SCLogPerf("using unique mpm ctx' for %s", n->name);
-            }
+            SCLogDebug("using unique mpm ctx' for %s", n->name);
             n->sgh_mpm_context = MPM_CTX_FACTORY_UNIQUE_CONTEXT;
         } else {
-            if (!(de_ctx->flags & DE_QUIET)) {
-                SCLogPerf("using shared mpm ctx' for %s", n->name);
-            }
+            SCLogDebug("using shared mpm ctx' for %s", n->name);
             n->sgh_mpm_context = MpmFactoryRegisterMpmCtxProfile(de_ctx, n->name, n->sm_list);
         }
 
@@ -472,14 +468,10 @@ void DetectMpmInitializeFrameMpms(DetectEngineCtx *de_ctx)
             shared = confshared;
 
         if (shared == 0) {
-            if (!(de_ctx->flags & DE_QUIET)) {
-                SCLogPerf("using unique mpm ctx' for %s", n->name);
-            }
+            SCLogDebug("using unique mpm ctx' for %s", n->name);
             n->sgh_mpm_context = MPM_CTX_FACTORY_UNIQUE_CONTEXT;
         } else {
-            if (!(de_ctx->flags & DE_QUIET)) {
-                SCLogPerf("using shared mpm ctx' for %s", n->name);
-            }
+            SCLogDebug("using shared mpm ctx' for %s", n->name);
             n->sgh_mpm_context = MpmFactoryRegisterMpmCtxProfile(de_ctx, n->name, n->sm_list);
         }
 
@@ -645,14 +637,10 @@ void DetectMpmInitializePktMpms(DetectEngineCtx *de_ctx)
             shared = confshared;
 
         if (shared == 0) {
-            if (!(de_ctx->flags & DE_QUIET)) {
-                SCLogPerf("using unique mpm ctx' for %s", n->name);
-            }
+            SCLogDebug("using unique mpm ctx' for %s", n->name);
             n->sgh_mpm_context = MPM_CTX_FACTORY_UNIQUE_CONTEXT;
         } else {
-            if (!(de_ctx->flags & DE_QUIET)) {
-                SCLogPerf("using shared mpm ctx' for %s", n->name);
-            }
+            SCLogDebug("using shared mpm ctx' for %s", n->name);
             n->sgh_mpm_context = MpmFactoryRegisterMpmCtxProfile(de_ctx, n->name, n->sm_list);
         }
 
@@ -705,10 +693,10 @@ static int32_t SetupBuiltinMpm(DetectEngineCtx *de_ctx, const char *name)
     int32_t ctx;
     if (shared == 0) {
         ctx = MPM_CTX_FACTORY_UNIQUE_CONTEXT;
-        SCLogPerf("using unique mpm ctx' for %s", name);
+        SCLogDebug("using unique mpm ctx' for %s", name);
     } else {
         ctx = MpmFactoryRegisterMpmCtxProfile(de_ctx, name, DETECT_SM_LIST_PMATCH);
-        SCLogPerf("using shared mpm ctx' for %s", name);
+        SCLogDebug("using shared mpm ctx' for %s", name);
     }
     return ctx;
 }