summaryrefslogtreecommitdiff
path: root/src/stats-mode.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-02-20 20:42:22 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-02-20 20:42:22 +0100
commite83250c0381bbff232011b67c87a5b9f3a0de09a (patch)
tree903755fb71f9767466d18db09d9930fd8016d745 /src/stats-mode.c
parent2112bbdb99a57704ec882ee0926a11c548501f0d (diff)
downloadconntrack-tools-e83250c0381bbff232011b67c87a5b9f3a0de09a.tar.gz
conntrack-tools-e83250c0381bbff232011b67c87a5b9f3a0de09a.zip
src: remove obsolete debug() and debug_ct() calls
This patch removes debug() and debug_ct(), I haven't use the debugging information that these functions provide in years. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/stats-mode.c')
-rw-r--r--src/stats-mode.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/stats-mode.c b/src/stats-mode.c
index 94fc45b..af1c136 100644
--- a/src/stats-mode.c
+++ b/src/stats-mode.c
@@ -18,7 +18,6 @@
#include "netlink.h"
#include "traffic_stats.h"
-#include "debug.h"
#include "cache.h"
#include "log.h"
#include "conntrackd.h"
@@ -97,8 +96,7 @@ static void dump_stats(struct nf_conntrack *ct)
nfct_attr_unset(ct, ATTR_TIMEOUT);
nfct_attr_unset(ct, ATTR_USE);
- if (cache_update_force(STATE_STATS(cache), ct))
- debug_ct(ct, "resync entry");
+ cache_update_force(STATE_STATS(cache), ct);
}
static int resync_stats(enum nf_conntrack_msg_type type,
@@ -116,8 +114,7 @@ static int resync_stats(enum nf_conntrack_msg_type type,
nfct_attr_unset(ct, ATTR_REPL_COUNTER_PACKETS);
nfct_attr_unset(ct, ATTR_USE);
- if (!cache_update_force(STATE_STATS(cache), ct))
- debug_ct(ct, "stats resync");
+ cache_update_force(STATE_STATS(cache), ct);
return NFCT_CB_CONTINUE;
}
@@ -129,7 +126,6 @@ static int purge_step(void *data1, void *data2)
STATE(get_retval) = 0;
nl_get_conntrack(STATE(get), obj->ct); /* modifies STATE(get_retval) */
if (!STATE(get_retval)) {
- debug_ct(obj->ct, "purge stats");
cache_del(STATE_STATS(cache), obj);
dlog_ct(STATE(stats_log), obj->ct, NFCT_O_PLAIN);
cache_object_free(obj);