Skip to content
Snippets Groups Projects
Commit 6ca5e9e5 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

Merge branch 'debug_clean' of /git/repositories/labs/knot

parents 168b5319 87c17b7d
No related branches found
No related tags found
No related merge requests found
......@@ -87,22 +87,19 @@ AM_CONDITIONAL([T0_PARSER], test "$enable_fastparser" = "no")
# Debug modules
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug=server,zones,xfr,packet,dname,rr,ns,hash,compiler,stash],
AS_HELP_STRING([--enable-debug=server,zones,xfr,packet,rr,ns,loader,dnssec],
[compile selected debug modules [default=none]]),
[
echo ${enableval}|tr "," "\n"|while read val; do
case "${val}" in
server) AC_DEFINE([KNOTD_SERVER_DEBUG], [1], [Server debug.]) ;;
zones) AC_DEFINE([KNOT_ZONES_DEBUG], [1], [Zones debug.]) ;;
xfr) AC_DEFINE([KNOT_XFR_DEBUG], [1], [XFR debug.]) ;;
packet) AC_DEFINE([KNOT_PACKET_DEBUG], [1], [Packet debug.]) ;;
dname) AC_DEFINE([KNOT_DNAME_DEBUG], [1], [Domain names debug.]) ;;
rr) AC_DEFINE([KNOT_RR_DEBUG], [1], [RR debug.]) ;;
ns) AC_DEFINE([KNOT_NS_DEBUG], [1], [Nameserver debug.]) ;;
hash) AC_DEFINE([KNOT_HASH_DEBUG], [1], [Hashtable debug.]) ;;
compiler) AC_DEFINE([KNOT_COMPILER_DEBUG], [1], [Zone compiler debug.]) ;;
stash) AC_DEFINE([KNOT_STASH_DEBUG], [1], [Hash table stash debug.]) ;;
dnssec) AC_DEFINE([KNOT_DNSSEC_DEBUG], [1], [DNSSEC debug.]) ;;
server) AC_DEFINE([KNOTD_SERVER_DEBUG], [1], [Server debug.]) ;;
zones) AC_DEFINE([KNOT_ZONES_DEBUG], [1], [Zones debug.]) ;;
xfr) AC_DEFINE([KNOT_XFR_DEBUG], [1], [XFR debug.]) ;;
packet) AC_DEFINE([KNOT_PACKET_DEBUG], [1], [Packet debug.]) ;;
rr) AC_DEFINE([KNOT_RR_DEBUG], [1], [RR debug.]) ;;
ns) AC_DEFINE([KNOT_NS_DEBUG], [1], [Nameserver debug.]) ;;
loader) AC_DEFINE([KNOT_LOADER_DEBUG], [1], [Zone loading debug.]) ;;
dnssec) AC_DEFINE([KNOT_DNSSEC_DEBUG], [1], [DNSSEC debug.]) ;;
esac
done
], [])
......
......@@ -105,12 +105,11 @@ listed, separated by commas:
timers, high-level journal management.
@item @code{xfr} - AXFR, IXFR and NOTIFY handling.
@item @code{packet} - Packet parsing and response creation.
@item @code{dname} - Parsing, comparing and other operations on domain names.
@item @code{rr} - Details of processed resource records.
@item @code{ns} - Query processing, high-level handling of all requests
(transfers, NOTIFY, normal queries).
@item @code{hash} - Details of hash table (the main data structure) operation.
@item @code{compiler} - Zone file compilation.
@item @code{loader} - Zone loading and semantic checks.
@item @code{dnssec} - DNSSEC operations.
@end itemize
@item
......
......@@ -43,11 +43,9 @@
#define KNOTD_NOTIFY_DEBUG
#endif
#ifdef KNOT_COMPILER_DEBUG
#define KNOTD_ZDUMP_DEBUG
#ifdef KNOT_LOADER_DEBUG
#define KNOTD_ZLOAD_DEBUG
#define KNOTD_SEMCHECK_DEBUG
#define KNOTD_COMPILE_DEBUG
#endif
#include "common/log.h"
......@@ -390,50 +388,6 @@
/******************************************************************************/
#ifdef KNOTD_ZDUMP_DEBUG
/* Brief messages. */
#ifdef DEBUG_ENABLE_BRIEF
#define dbg_zdump(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_zdump_hex(data, len) hex_log(LOG_SERVER, (data), (len))
#else
#define dbg_zdump(msg...)
#define dbg_zdump_hex(data, len)
#endif
/* Verbose messages. */
#ifdef DEBUG_ENABLE_VERBOSE
#define dbg_zdump_verb(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_zdump_hex_verb(data, len) hex_log(LOG_SERVER, (data), (len))
#else
#define dbg_zdump_verb(msg...)
#define dbg_zdump_hex_verb(data, len)
#endif
/* Detail messages. */
#ifdef DEBUG_ENABLE_DETAILS
#define dbg_zdump_detail(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_zdump_hex_detail(data, len) hex_log(LOG_SERVER, (data), (len))
#define dbg_zdump_exec_detail(cmds) do { cmds } while (0)
#else
#define dbg_zdump_detail(msg...)
#define dbg_zdump_hex_detail(data, len)
#define dbg_zdump_exec_detail(cmds)
#endif
/* No messages. */
#else
#define dbg_zdump(msg...)
#define dbg_zdump_hex(data, len)
#define dbg_zdump_verb(msg...)
#define dbg_zdump_hex_verb(data, len)
#define dbg_zdump_detail(msg...)
#define dbg_zdump_hex_detail(data, len)
#define dbg_zdump_exec_detail(cmds)
#endif
/******************************************************************************/
#ifdef KNOTD_ZLOAD_DEBUG
/* Brief messages. */
......@@ -476,47 +430,7 @@
#define dbg_zload_exec_detail(cmds)
#endif
#ifdef KNOTD_COMPILE_DEBUG
/* Brief messages. */
#ifdef DEBUG_ENABLE_BRIEF
#define dbg_zp(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_zp_hex(data, len) hex_log(LOG_SERVER, (data), (len))
#else
#define dbg_zp(msg...)
#define dbg_zp_hex(data, len)
#endif
/* Verbose messages. */
#ifdef DEBUG_ENABLE_VERBOSE
#define dbg_zp_verb(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_zp_hex_verb(data, len) hex_log(LOG_SERVER, (data), (len))
#else
#define dbg_zp_verb(msg...)
#define dbg_zp_hex_verb(data, len)
#endif
/* Detail messages. */
#ifdef DEBUG_ENABLE_DETAILS
#define dbg_zp_detail(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_zp_hex_detail(data, len) hex_log(LOG_SERVER, (data), (len))
#define dbg_zp_exec_detail(cmds) do { cmds } while (0)
#else
#define dbg_zp_detail(msg...)
#define dbg_zp_hex_detail(data, len)
#define dbg_zp_exec_detail(cmds)
#endif
/* No messages. */
#else
#define dbg_zp(msg...)
#define dbg_zp_hex(data, len)
#define dbg_zp_verb(msg...)
#define dbg_zp_hex_verb(data, len)
#define dbg_zp_detail(msg...)
#define dbg_zp_hex_detail(data, len)
#define dbg_zp_exec_detail(cmds)
#endif
/******************************************************************************/
#ifdef KNOTD_SEMCHECK_DEBUG
......
......@@ -58,7 +58,7 @@ static int rrset_list_add(rrset_list_t **head, knot_rrset_t *rrsig)
*head = tmp;
}
dbg_zp_verb("zp: rrset_add: Added RRSIG %p to list.\n", rrsig);
dbg_zload_verb("zp: rrset_add: Added RRSIG %p to list.\n", rrsig);
return KNOT_EOK;
}
......@@ -83,7 +83,7 @@ static void rrset_list_delete(rrset_list_t **head)
*head = NULL;
dbg_zp("zp: list_delete: List deleleted.\n");
dbg_zload("zp: list_delete: List deleleted.\n");
}
static int find_rrset_for_rrsig_in_node(knot_zone_contents_t *zone,
......@@ -101,7 +101,7 @@ static int find_rrset_for_rrsig_in_node(knot_zone_contents_t *zone,
int ret;
if (tmp_rrset == NULL) {
dbg_zp("zp: find_rr_for_sig_in_node: Node does not contain "
dbg_zload("zp: find_rr_for_sig_in_node: Node does not contain "
"RRSet of type %d.\n",
knot_rdata_rrsig_type_covered(rrsig, 0));
tmp_rrset = knot_rrset_new(knot_dname_copy(rrsig->owner),
......@@ -109,7 +109,7 @@ static int find_rrset_for_rrsig_in_node(knot_zone_contents_t *zone,
rrsig->rclass,
rrsig->ttl);
if (tmp_rrset == NULL) {
dbg_zp("zp: find_rr_for_sig_in_node: Cannot create "
dbg_zload("zp: find_rr_for_sig_in_node: Cannot create "
"dummy RRSet.\n");
return KNOT_ERROR;
}
......@@ -118,7 +118,7 @@ static int find_rrset_for_rrsig_in_node(knot_zone_contents_t *zone,
KNOT_RRSET_DUPL_MERGE);
assert(ret <= 0);
if (ret < 0) {
dbg_zp("zp: Failed to add new dummy RRSet to the zone."
dbg_zload("zp: Failed to add new dummy RRSet to the zone."
"\n");
return KNOT_ERROR;
}
......@@ -140,7 +140,7 @@ static int find_rrset_for_rrsig_in_node(knot_zone_contents_t *zone,
ret = knot_zone_contents_add_rrsigs(zone, rrsig, &tmp_rrset, &node,
KNOT_RRSET_DUPL_MERGE);
if (ret < 0) {
dbg_zp("zp: find_rr_for_sig: Cannot add RRSIG.\n");
dbg_zload("zp: find_rr_for_sig: Cannot add RRSIG.\n");
return KNOT_EINVAL;
} else if (ret > 0) {
/* Merged, free data + owner, but not DNAMEs inside RDATA. */
......@@ -157,7 +157,7 @@ static knot_node_t *create_node(knot_zone_contents_t *zone,
knot_node_t *node,
int create_parents, uint8_t))
{
dbg_zp_verb("zp: create_node: Creating node using RRSet: %p.\n",
dbg_zload_verb("zp: create_node: Creating node using RRSet: %p.\n",
current_rrset);
knot_node_t *node = knot_node_new(current_rrset->owner, NULL, 0);
int ret = node_add_func(zone, node, 1, 0);
......@@ -175,7 +175,7 @@ static void process_rrsigs_in_node(parser_context_t *parser,
knot_zone_contents_t *zone,
knot_node_t *node)
{
dbg_zp_verb("zp: process_rrsigs: Processing RRSIGS in node: %p.\n",
dbg_zload_verb("zp: process_rrsigs: Processing RRSIGS in node: %p.\n",
node);
rrset_list_t *tmp = parser->node_rrsigs;
while (tmp != NULL) {
......@@ -206,16 +206,16 @@ void process_error(const scanner_t *s)
static int add_rdata_to_rr(knot_rrset_t *rrset, const scanner_t *scanner)
{
if (rrset == NULL) {
dbg_zp("zp: add_rdata_to_rr: No RRSet.\n");
dbg_zload("zp: add_rdata_to_rr: No RRSet.\n");
return KNOT_EINVAL;
}
dbg_zp_detail("zp: add_rdata_to_rr: Adding type %d, RRSet has %d RRs.\n",
dbg_zload_detail("zp: add_rdata_to_rr: Adding type %d, RRSet has %d RRs.\n",
rrset->type, rrset->rdata_count);
uint8_t *rdata = knot_rrset_create_rdata(rrset, scanner->r_data_length);
if (rdata == NULL) {
dbg_zp("zp: create_rdata: Could not create RR.\n");
dbg_zload("zp: create_rdata: Could not create RR.\n");
return KNOT_ENOMEM;
}
......@@ -227,7 +227,7 @@ static int add_rdata_to_rr(knot_rrset_t *rrset, const scanner_t *scanner)
static void process_rr(const scanner_t *scanner)
{
/*!< \todo Refactor, too long. */
dbg_zp_detail("Owner from parser=%s\n",
dbg_zload_detail("Owner from parser=%s\n",
scanner->r_owner);
parser_context_t *parser = scanner->data;
if (parser->ret != KNOT_EOK) {
......@@ -265,7 +265,7 @@ static void process_rr(const scanner_t *scanner)
return;
}
dbg_zp_verb("zp: process_rr: Processing type: %d.\n",
dbg_zload_verb("zp: process_rr: Processing type: %d.\n",
parser->current_rrset->type);
assert(current_rrset->rdata_count);
......@@ -369,7 +369,7 @@ static void process_rr(const scanner_t *scanner)
node_add_func))
== NULL) {
knot_rrset_free(&tmp_rrsig);
dbg_zp("zp: process_rr: Cannot "
dbg_zload("zp: process_rr: Cannot "
"create new node.\n");
log_zone_error("None cannot be created.\n");
/*!< \todo consider a new error */
......@@ -380,13 +380,13 @@ static void process_rr(const scanner_t *scanner)
}
if (rrset_list_add(&parser->node_rrsigs, tmp_rrsig) != 0) {
dbg_zp("zp: process_rr: Cannot "
dbg_zload("zp: process_rr: Cannot "
"create new node.\n");
parser->ret = KNOT_ERROR;
return;
}
dbg_zp_verb("zp: process_rr: RRSIG proccesed successfully.\n");
dbg_zload_verb("zp: process_rr: RRSIG proccesed successfully.\n");
parser->ret = KNOT_EOK;
return;
}
......@@ -419,7 +419,7 @@ static void process_rr(const scanner_t *scanner)
if ((node = create_node(contents, current_rrset,
node_add_func)) == NULL) {
dbg_zp("zp: process_rr: Cannot "
dbg_zload("zp: process_rr: Cannot "
"create new node.\n");
char *zone_name = knot_dname_to_str(contents->apex->owner);
char *name = knot_dname_to_str(current_rrset->owner);
......@@ -453,7 +453,7 @@ static void process_rr(const scanner_t *scanner)
&node,
KNOT_RRSET_DUPL_MERGE);
if (ret < 0) {
dbg_zp("zp: process_rr: Cannot "
dbg_zload("zp: process_rr: Cannot "
"add RRSets.\n");
/*!< \todo mixed error codes, has to be changed. */
parser->ret = ret;
......@@ -484,7 +484,7 @@ static void process_rr(const scanner_t *scanner)
parser->last_node = node;
dbg_zp_verb("zp: process_rr: RRSet %p processed successfully.\n",
dbg_zload_verb("zp: process_rr: RRSet %p processed successfully.\n",
parser->current_rrset);
parser->ret = KNOT_EOK;
}
......
......@@ -1127,22 +1127,20 @@ void knot_packet_dump(const knot_packet_t *packet)
}
#ifdef KNOT_PACKET_DEBUG
uint8_t flags1 = knot_wire_get_flags1(packet->wireformat);
uint8_t flags2 = knot_wire_get_flags2(packet->wireformat);
dbg_packet("DNS packet:\n-----------------------------\n");
dbg_packet("\nHeader:\n");
dbg_packet(" ID: %u\n", knot_wire_get_id(packet->wireformat));
dbg_packet(" FLAGS: %s %s %s %s %s %s %s\n",
knot_wire_flags_get_qr(flags1) ? "qr" : "",
knot_wire_flags_get_aa(flags1) ? "aa" : "",
knot_wire_flags_get_tc(flags1) ? "tc" : "",
knot_wire_flags_get_rd(flags1) ? "rd" : "",
knot_wire_flags_get_ra(flags2) ? "ra" : "",
knot_wire_flags_get_ad(flags2) ? "ad" : "",
knot_wire_flags_get_cd(flags2) ? "cd" : "");
dbg_packet(" RCODE: %u\n", knot_wire_flags_get_rcode(flags2));
dbg_packet(" OPCODE: %u\n", knot_wire_flags_get_opcode(flags1));
knot_wire_get_qr(packet->wireformat) ? "qr" : "",
knot_wire_get_aa(packet->wireformat) ? "aa" : "",
knot_wire_get_tc(packet->wireformat) ? "tc" : "",
knot_wire_get_rd(packet->wireformat) ? "rd" : "",
knot_wire_get_ra(packet->wireformat) ? "ra" : "",
knot_wire_get_ad(packet->wireformat) ? "ad" : "",
knot_wire_get_cd(packet->wireformat) ? "cd" : "");
dbg_packet(" RCODE: %u\n", knot_wire_get_rcode(packet->wireformat));
dbg_packet(" OPCODE: %u\n", knot_wire_get_opcode(packet->wireformat));
dbg_packet(" QDCOUNT: %u\n", knot_wire_get_qdcount(packet->wireformat));
dbg_packet(" ANCOUNT: %u\n", knot_wire_get_ancount(packet->wireformat));
dbg_packet(" NSCOUNT: %u\n", knot_wire_get_nscount(packet->wireformat));
......
......@@ -49,19 +49,12 @@
#define KNOT_NSEC3_DEBUG
#endif
/* define KNOT_PACKET_DEBUG -- in configure.ac */
#ifdef KNOT_PACKET_DEBUG
#define KNOT_RESPONSE_DEBUG
#endif
#ifdef KNOT_RR_DEBUG
#define KNOT_RRSET_DEBUG
#define KNOT_RDATA_DEBUG
#endif
#ifdef KNOT_HASH_DEBUG
#define CUCKOO_DEBUG
#define CUCKOO_DEBUG_HASH
#endif
#ifdef KNOT_XFR_DEBUG
......@@ -70,27 +63,12 @@
#define KNOT_DDNS_DEBUG
#endif
/* KNOT_DNAME_DEBUG -- in configure.ac */
/* #define KNOT_DDNS_DEBUG -- \todo Use this or delete. */
#include "libknot/rrset.h"
#include "libknot/zone/node.h"
#include "libknot/zone/zone.h"
#include "libknot/util/utils.h"
#include "common/print.h"
/*!
* \brief Dumps RRSet.
*
* This function is empty if neither KNOT_ZONE_DEBUG nor KNOT_RRSET_DEBUG
* is defined.
*
* \param rrset RRSet to dump.
* \param loaded_zone Set to <> 0 if the RRSet is part of a zone loaded into
* the server. Set to 0 otherwise.
*/
void knot_rrset_dump(const knot_rrset_t *rrset);
/*!
* \brief Dumps zone node.
*
......@@ -166,56 +144,6 @@ void knot_zone_contents_dump(knot_zone_contents_t *zone);
/******************************************************************************/
#ifdef KNOT_DNAME_DEBUG
/* Brief messages. */
#ifdef DEBUG_ENABLE_BRIEF
#define dbg_dname(msg...) log_msg(LOG_ZONE, LOG_DEBUG, msg)
#define dbg_dname_hex(data, len) hex_log(LOG_ZONE, (data), (len))
#define dbg_dname_exec(cmds) do { cmds } while (0)
#else
#define dbg_dname(msg...)
#define dbg_dname_hex(data, len)
#define dbg_dname_exec(cmds)
#endif
/* Verbose messages. */
#ifdef DEBUG_ENABLE_VERBOSE
#define dbg_dname_verb(msg...) log_msg(LOG_ZONE, LOG_DEBUG, msg)
#define dbg_dname_hex_verb(data, len) hex_log(LOG_ZONE, (data), (len))
#define dbg_dname_exec_verb(cmds) do { cmds } while (0)
#else
#define dbg_dname_verb(msg...)
#define dbg_dname_hex_verb(data, len)
#define dbg_dname_exec_verb(cmds)
#endif
/* Detail messages. */
#ifdef DEBUG_ENABLE_DETAILS
#define dbg_dname_detail(msg...) log_msg(LOG_ZONE, LOG_DEBUG, msg)
#define dbg_dname_hex_detail(data, len) hex_log(LOG_ZONE, (data), (len))
#define dbg_dname_exec_detail(cmds) do { cmds } while (0)
#else
#define dbg_dname_detail(msg...)
#define dbg_dname_hex_detail(data, len)
#define dbg_dname_exec_detail(cmds)
#endif
/* No messages. */
#else
#define dbg_dname(msg...)
#define dbg_dname_hex(data, len)
#define dbg_dname_exec(cmds)
#define dbg_dname_verb(msg...)
#define dbg_dname_hex_verb(data, len)
#define dbg_dname_exec_verb(cmds)
#define dbg_dname_detail(msg...)
#define dbg_dname_hex_detail(data, len)
#define dbg_dname_exec_detail(cmds)
#endif
/******************************************************************************/
#ifdef KNOT_NODE_DEBUG
/* Brief messages. */
......@@ -355,6 +283,8 @@ void knot_zone_contents_dump(knot_zone_contents_t *zone);
#define dbg_zonedb_exec_detail(cmds)
#endif
/******************************************************************************/
#ifdef KNOT_ZONEDIFF_DEBUG
/* Brief messages. */
......@@ -579,113 +509,6 @@ void knot_zone_contents_dump(knot_zone_contents_t *zone);
#define dbg_nsec3_hex_detail(data, len)
#endif
/******************************************************************************/
#ifdef CUCKOO_DEBUG
/* Brief messages. */
#ifdef DEBUG_ENABLE_BRIEF
#define dbg_ck(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_ck_hex(data, len) hex_log(LOG_SERVER, (data), (len))
#define dbg_ck_exec(cmds) do { cmds } while (0)
#else
#define dbg_ck(msg...)
#define dbg_ck_hex(data, len)
#define dbg_ck_exec(cmds)
#endif
/* Verbose messages. */
#ifdef DEBUG_ENABLE_VERBOSE
#define dbg_ck_verb(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_ck_hex_verb(data, len) hex_log(LOG_SERVER, (data), (len))
#define dbg_ck_exec_verb(cmds) do { cmds } while (0)
#else
#define dbg_ck_verb(msg...)
#define dbg_ck_hex_verb(data, len)
#define dbg_ck_exec_verb(cmds)
#endif
/* Detail messages. */
#ifdef DEBUG_ENABLE_DETAILS
#define dbg_ck_detail(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_ck_hex_detail(data, len) hex_log(LOG_SERVER, (data), (len))
#define dbg_ck_exec_detail(cmds) do { cmds } while (0)
#else
#define dbg_ck_detail(msg...)
#define dbg_ck_hex_detail(data, len)
#define dbg_ck_exec_detail(cmds)
#endif
/* No messages. */
#else
#define dbg_ck(msg...)
#define dbg_ck_hex(data, len)
#define dbg_ck_exec(cmds)
#define dbg_ck_verb(msg...)
#define dbg_ck_hex_verb(data, len)
#define dbg_ck_exec_verb(cmds)
#define dbg_ck_detail(msg...)
#define dbg_ck_hex_detail(data, len)
#define dbg_ck_exec_detail(cmds)
#endif
/******************************************************************************/
#ifdef CUCKOO_DEBUG_HASH
/* Brief messages. */
#ifdef DEBUG_ENABLE_BRIEF
#define dbg_ck_hash(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_ck_hash_hex(data, len) hex_log(LOG_SERVER, (data), (len))
#else
#define dbg_ck_hash(msg...)
#define dbg_ck_rehash(msg...)
#define dbg_ck_hash_hex(data, len)
#endif
/* Verbose messages. */
#ifdef DEBUG_ENABLE_VERBOSE
#define dbg_ck_hash_verb(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_ck_hash_hex_verb(data, len) hex_log(LOG_SERVER, (data), (len))
#else
#define dbg_ck_hash_verb(msg...)
#define dbg_ck_hash_hex_verb(data, len)
#endif
/* Detail messages. */
#ifdef DEBUG_ENABLE_DETAILS
#define dbg_ck_hash_detail(msg...) log_msg(LOG_SERVER, LOG_DEBUG, msg)
#define dbg_ck_hash_hex_detail(data, len) hex_log(LOG_SERVER, (data), (len))
#else
#define dbg_ck_hash_detail(msg...)
#define dbg_ck_hash_hex_detail(data, len)
#endif
/* No messages. */
#else
#define dbg_ck_hash(msg...)
#define dbg_ck_hash_hex(data, len)
#define dbg_ck_hash_verb(msg...)
#define dbg_ck_hash_hex_verb(data, len)
#define dbg_ck_hash_detail(msg...)
#define dbg_ck_hash_hex_detail(data, len)
#endif
/******************************************************************************/
#ifdef KNOT_STASH_DEBUG
#ifdef DEBUG_ENABLE_BRIEF
#define dbg_stash(msg...) log_msg(LOG_ZONE, LOG_DEBUG, msg)
#else
#define dbg_stash(msg...)
#endif
#else
#define dbg_stash(msg...)
#endif
/******************************************************************************/
#ifdef KNOT_XFRIN_DEBUG
......@@ -786,6 +609,8 @@ void knot_zone_contents_dump(knot_zone_contents_t *zone);
#define dbg_ddns_exec_detail(cmds)
#endif
/******************************************************************************/
#ifdef KNOT_TSIG_DEBUG
/* Brief messages. */
......@@ -825,6 +650,8 @@ void knot_zone_contents_dump(knot_zone_contents_t *zone);
#define dbg_tsig_hex_detail(data, len)
#endif
/******************************************************************************/
#ifdef KNOT_RRSET_DEBUG
/* Brief messages. */
......@@ -873,6 +700,8 @@ void knot_zone_contents_dump(knot_zone_contents_t *zone);
#define dbg_rrset_exec_detail(cmds)
#endif
/******************************************************************************/
#ifdef KNOT_DNSSEC_DEBUG
/* Brief messages. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment