]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-engine: log MPM/SPM matchers being used
authorJustin Viiret <justin.viiret@intel.com>
Mon, 23 May 2016 04:22:30 +0000 (14:22 +1000)
committerVictor Julien <victor@inliniac.net>
Fri, 27 May 2016 13:13:54 +0000 (15:13 +0200)
src/detect-engine.c

index dea169ed3ff4037dd8da73ee48fd3bcc0314ee88..3d6f51350516a4a8c4125402756a5d9994494b98 100644 (file)
@@ -839,7 +839,9 @@ static DetectEngineCtx *DetectEngineCtxInitReal(int minimal, const char *prefix)
     }
 
     de_ctx->mpm_matcher = PatternMatchDefaultMatcher();
+    SCLogInfo("using MPM matcher: %s", mpm_table[de_ctx->mpm_matcher].name);
     de_ctx->spm_matcher = SinglePatternMatchDefaultMatcher();
+    SCLogInfo("using SPM matcher: %s", spm_table[de_ctx->spm_matcher].name);
 
     de_ctx->spm_global_thread_ctx = SpmInitGlobalThreadCtx(de_ctx->spm_matcher);
     if (de_ctx->spm_global_thread_ctx == NULL) {