summaryrefslogtreecommitdiffstats
path: root/lib/rplan.c
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2016-12-12 11:17:52 +0100
committerOndřej Surý <ondrej@sury.org>2016-12-12 11:22:30 +0100
commitd0150ffa084dc1240838534aa55fda120551c0ad (patch)
tree0720fd1e3844a32fbd2397ef5fd608fcc78d5c8a /lib/rplan.c
parent--verbose: warn when having no effect (diff)
downloadknot-resolver-d0150ffa084dc1240838534aa55fda120551c0ad.tar.xz
knot-resolver-d0150ffa084dc1240838534aa55fda120551c0ad.zip
Split NDEBUG to NDEBUG (asserts) and NOVERBOSELOG (verbose logging); rename all related symbols to use VERBOSE instead of DEBUG
Diffstat (limited to 'lib/rplan.c')
-rw-r--r--lib/rplan.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rplan.c b/lib/rplan.c
index b5915f96..bbc6955f 100644
--- a/lib/rplan.c
+++ b/lib/rplan.c
@@ -23,7 +23,7 @@
#include "lib/defines.h"
#include "lib/layer.h"
-#define DEBUG_MSG(qry, fmt...) QRDEBUG(qry, "plan", fmt)
+#define VERBOSE_MSG(qry, fmt...) QRVERBOSE(qry, "plan", fmt)
#define QUERY_PROVIDES(q, name, cls, type) \
((q)->sclass == (cls) && (q)->stype == type && knot_dname_is_equal((q)->sname, name))
@@ -151,8 +151,8 @@ struct kr_query *kr_rplan_push_empty(struct kr_rplan *rplan, struct kr_query *pa
return NULL;
}
- WITH_DEBUG {
- DEBUG_MSG(parent, "plan '%s' type '%s'\n", "", "");
+ WITH_VERBOSE {
+ VERBOSE_MSG(parent, "plan '%s' type '%s'\n", "", "");
}
return qry;
}
@@ -172,11 +172,11 @@ struct kr_query *kr_rplan_push(struct kr_rplan *rplan, struct kr_query *parent,
qry->sclass = cls;
qry->stype = type;
- WITH_DEBUG {
+ WITH_VERBOSE {
char name_str[KNOT_DNAME_MAXLEN], type_str[16];
knot_dname_to_str(name_str, name, sizeof(name_str));
knot_rrtype_to_string(type, type_str, sizeof(type_str));
- DEBUG_MSG(parent, "plan '%s' type '%s'\n", name_str, type_str);
+ VERBOSE_MSG(parent, "plan '%s' type '%s'\n", name_str, type_str);
}
return qry;
}
@@ -223,4 +223,4 @@ struct kr_query *kr_rplan_resolved(struct kr_rplan *rplan)
return array_tail(rplan->resolved);
}
-#undef DEBUG_MSG
+#undef VERBOSE_MSG