diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-21 13:12:04 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-21 13:24:21 +0200 |
commit | 3733cabc2640d00a0fc3aee2d37d1bb9d097fc0f (patch) | |
tree | c6d4a250adcdc582afaa4bc21e6a19e807e82cc2 | |
parent | 18bfa4bfb3bb875c36756272bb653c33e338c776 (diff) |
cthelper: disable debugging information by default
The pr_debug call should be converted to use dlog instead.
I'll try to add some some configuration parameter to
enable/disable debugging in runtime. This is not very flexible.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | include/helper.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/helper.h b/include/helper.h index 02ff3df..329fd2d 100644 --- a/include/helper.h +++ b/include/helper.h @@ -99,6 +99,12 @@ enum ip_conntrack_info { #define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL) -#define pr_debug printf +#if 0 +#define pr_debug(fmt, arg...) \ + printf(fmt, ##arg) +#else +#define pr_debug(fmt, arg...) \ + ({ if (0) printf(fmt, ##arg); 0; }) +#endif #endif |