]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
layer/rrsigcache: Removed debugging messages.
authorKarel Slany <karel.slany@nic.cz>
Mon, 29 Jun 2015 15:07:37 +0000 (17:07 +0200)
committerKarel Slany <karel.slany@nic.cz>
Mon, 29 Jun 2015 15:15:30 +0000 (17:15 +0200)
lib/layer/rrsigcache.c

index 4e8743e5ebcb1e8833b4afaa50dcefe040215501..dfe3fdd1eb007c9a8dcf53b2fb64dade17ea4d0f 100644 (file)
 #include "lib/cache.h"
 #include "lib/module.h"
 
-//#define DEBUG_MSG(fmt...) QRDEBUG(kr_rplan_current(rplan), "rrsc",  fmt)
-//#define DEBUG_MSG(fmt...) QRDEBUG(NULL, "rrsc",  fmt)
-#define DEBUG_MSG(fmt...)
+#define DEBUG_MSG(fmt...) QRDEBUG(kr_rplan_current(rplan), "rrsc",  fmt)
+#define DEBUG_MSG_NOPLAN(fmt...) QRDEBUG(NULL, "rrsc",  fmt)
+//#define DEBUG_MSG(fmt...)
+//#define DEBUG_MSG_NOPLAN(fmt...)
 
 static int begin(knot_layer_t *ctx, void *module_param)
 {
@@ -113,16 +114,12 @@ static int stash_add_rrsig(map_t *stash, const knot_pktsection_t *section,
        /* Check if already exists */
        knot_rrset_t *stashed = map_get(stash, key);
        if (stashed) {
-               DEBUG_MSG("%s() stashed %d %s\n", __func__, rr->type, rr->owner);
                return kr_ok();
        }
 
-       DEBUG_MSG("%s() stashing %d %s\n", __func__, rr->type, rr->owner);
-
        /* Construct RRSIG RRSet containing related data. */
        knot_rrset_t cache_rrsig;
        knot_rrset_init(&cache_rrsig, rr->owner, rr->type, rr->rclass);
-       DEBUG_MSG("%s() A001 %d\n", __func__, cache_rrsig.rrs.rr_count);
        for (uint16_t i = 0; i < section->count; ++i) {
                const knot_rrset_t *rrset = knot_pkt_rr(section, i);
                if (KNOT_RRTYPE_RRSIG != rrset->type) {
@@ -136,9 +133,7 @@ static int stash_add_rrsig(map_t *stash, const knot_pktsection_t *section,
                }
        }
 
-       DEBUG_MSG("%s() A002 %d\n", __func__, cache_rrsig.rrs.rr_count);
        if (cache_rrsig.rrs.rr_count) {
-               DEBUG_MSG("%s() A003 %d\n", __func__, cache_rrsig.type);
                stashed = knot_rrset_copy(&cache_rrsig, pool);
        }
        knot_rrset_clear(&cache_rrsig, pool);