Commit 5945013b authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Ondřej Surý

kr_*_print: don't include them in release builds

parent 435c50b6
......@@ -503,6 +503,8 @@ char *kr_module_call(struct kr_context *ctx, const char *module, const char *pro
return NULL;
}
#ifndef NDEBUG
void kr_rrset_print(const knot_rrset_t *rr)
{
char rrtext[KNOT_DNAME_MAXLEN * 2] = {0};
......@@ -560,3 +562,6 @@ void kr_rrtype_print(const uint16_t rrtype, const char *prefix, const char *post
knot_rrtype_to_string(rrtype, str, 32);
printf ("%s%s%s", prefix, str, postfix);
}
#endif /* !NDEBUG */
......@@ -191,10 +191,12 @@ int kr_ranked_rrarray_add(ranked_rr_array_t *array, const knot_rrset_t *rr,
int kr_ranked_rrarray_set_wire(ranked_rr_array_t *array, bool to_wire, uint32_t qry_uid);
#ifndef NDEBUG /* These might be useful (again) during debugging. */
void kr_rrset_print(const knot_rrset_t *rr);
void kr_pkt_print(knot_pkt_t *pkt);
void kr_dname_print(const knot_dname_t *name, const char *prefix, const char *postfix);
void kr_rrtype_print(const uint16_t rrtype, const char *prefix, const char *postfix);
#endif
/**
* Call module property.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment