return TM_ECODE_OK;
}
- SCLogNotice("FM %s/%d starting. min_timeout %us. Full hash pass in %us",
- th_v->name, ftd->instance, min_timeout, pass_in_sec);
+ SCLogDebug("FM %s/%d starting. min_timeout %us. Full hash pass in %us", th_v->name,
+ ftd->instance, min_timeout, pass_in_sec);
#ifdef FM_PROFILE
struct timeval endts;
int cnt = 0;
/* move all flows still in the hash to the recycler queue */
+#ifndef DEBUG
+ (void)FlowCleanupHash();
+#else
uint32_t flows = FlowCleanupHash();
- SCLogNotice("flows to progress: %u", flows);
+ SCLogDebug("flows to progress: %u", flows);
+#endif
/* make sure all flows are processed */
do {
if (val <= 100 && val >= 1) {
flow_config.emergency_recovery = (uint8_t)val;
} else {
- SCLogError(SC_ERR_INVALID_VALUE, "flow.emergency-recovery must be in the range of 1 and 100 (as percentage)");
+ SCLogError(SC_ERR_INVALID_VALUE, "flow.emergency-recovery must be in the range of "
+ "1 and 100 (as percentage)");
flow_config.emergency_recovery = FLOW_DEFAULT_EMERGENCY_RECOVERY;
}
} else {
uint32_t configval = 0;
/** set config values for memcap, prealloc and hash_size */
- uint64_t flow_memcap_copy;
+ uint64_t flow_memcap_copy = 0;
if ((ConfGet("flow.memcap", &conf_val)) == 1)
{
if (conf_val == NULL) {
FlowInitFlowProto();
uint32_t sz = sizeof(Flow) + FlowStorageSize();
- SCLogNotice("flow size %u, memcap allows for %"PRIu64" flows. Per hash row in perfect conditions %"PRIu64, sz, flow_memcap_copy/sz, (flow_memcap_copy/sz)/flow_config.hash_size);
+ SCLogConfig("flow size %u, memcap allows for %" PRIu64 " flows. Per hash row in perfect "
+ "conditions %" PRIu64,
+ sz, flow_memcap_copy / sz, (flow_memcap_copy / sz) / flow_config.hash_size);
return;
}