From 1112e103a89deae24f1a680bc2ebc744cfbae9f2 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 20 Dec 2010 09:20:10 +0100 Subject: [PATCH] Disable DBG_PERF by default except for when DEBUG is enabled. --- src/decode.h | 7 ------- src/suricata-common.h | 4 ++++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/decode.h b/src/decode.h index b911ed5e11..30a85b54e0 100644 --- a/src/decode.h +++ b/src/decode.h @@ -24,13 +24,6 @@ #ifndef __DECODE_H__ #define __DECODE_H__ -//#define IPQ -//#define NFQ -//#define IPFW -//#define PCAP - -//#define DEBUG -#define DBG_PERF //#define DBG_THREADS #define COUNTERS diff --git a/src/suricata-common.h b/src/suricata-common.h index 42af79bac2..7c7c9f08a0 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -26,6 +26,10 @@ #ifndef __SURICATA_COMMON_H__ #define __SURICATA_COMMON_H__ +#ifdef DEBUG +#define DBG_PERF +#endif + #define TRUE 1 #define FALSE 0