Clean up output of signature ordering module.

remotes/origin/master-1.1.x
Victor Julien 15 years ago
parent 001dcaae84
commit 3062b19068

@ -825,9 +825,8 @@ void SCSigOrderSignatures(DetectEngineCtx *de_ctx)
SCSigSignatureWrapper *sigw = NULL; SCSigSignatureWrapper *sigw = NULL;
int i = 0; int i = 0;
#ifndef UNITTESTS SCLogDebug("ordering signatures in memory");
SCLogInfo("ordering signatures in memory");
#endif
sig = de_ctx->sig_list; sig = de_ctx->sig_list;
while (sig != NULL) { while (sig != NULL) {
i++; i++;
@ -841,10 +840,8 @@ void SCSigOrderSignatures(DetectEngineCtx *de_ctx)
sig = sig->next; sig = sig->next;
} }
#ifndef UNITTESTS SCLogDebug("Total Signatures to be processed by the"
printf("SCSigOrderSignatures: Total Signatures to be processed by the" "sigordering module: %d", i);
"sigordering module: %d\n", i);
#endif
/* Re-order it in the Detection Engine Context sig_list */ /* Re-order it in the Detection Engine Context sig_list */
de_ctx->sig_list = NULL; de_ctx->sig_list = NULL;
@ -866,9 +863,7 @@ void SCSigOrderSignatures(DetectEngineCtx *de_ctx)
sigw = sigw->next; sigw = sigw->next;
} }
#ifndef UNITTESTS SCLogDebug("total signatures reordered by the sigordering module: %d", i);
SCLogInfo("total signatures reordered by the sigordering module: %d", i);
#endif
return; return;
} }

Loading…
Cancel
Save