Commit f0621e50 authored by Lubos Slovak's avatar Lubos Slovak

Renamed knot_xfr debug macros to xfrin

refs #1297
parent 2b10b3dc
This diff is collapsed.
......@@ -57,7 +57,7 @@
//#define CUCKOO_DEBUG
//#define CUCKOO_DEBUG_HASH
//#define KNOT_NS_DEBUG
//#define KNOT_XFR_DEBUG
//#define KNOT_XFRIN_DEBUG
//#define KNOT_DDNS_DEBUG
/*!
......@@ -618,52 +618,52 @@ void knot_zone_contents_dump(knot_zone_contents_t *zone, char loaded_zone);
/******************************************************************************/
#ifdef KNOT_XFR_DEBUG
#ifdef KNOT_XFRIN_DEBUG
/* Brief messages. */
#ifdef DEBUG_ENABLE_BRIEF
#define dbg_knot_xfr(msg...) fprintf(stderr, msg)
#define dbg_knot_xfr_hex(data, len) hex_print((data), (len))
#define dbg_knot_xfr_exec(cmds) do { cmds } while (0)
#define dbg_xfrin(msg...) fprintf(stderr, msg)
#define dbg_xfrin_hex(data, len) hex_print((data), (len))
#define dbg_xfrin_exec(cmds) do { cmds } while (0)
#else
#define dbg_knot_xfr(msg...)
#define dbg_knot_xfr_hex(data, len)
#define dbg_knot_xfr_exec(cmds)
#define dbg_xfrin(msg...)
#define dbg_xfrin_hex(data, len)
#define dbg_xfrin_exec(cmds)
#endif
/* Verbose messages. */
#ifdef DEBUG_ENABLE_VERBOSE
#define dbg_knot_xfr_verb(msg...) fprintf(stderr, msg)
#define dbg_knot_xfr_hex_verb(data, len) hex_print((data), (len))
#define dbg_knot_xfr_exec_verb(cmds) do { cmds } while (0)
#define dbg_xfrin_verb(msg...) fprintf(stderr, msg)
#define dbg_xfrin_hex_verb(data, len) hex_print((data), (len))
#define dbg_xfrin_exec_verb(cmds) do { cmds } while (0)
#else
#define dbg_knot_xfr_verb(msg...)
#define dbg_knot_xfr_hex_verb(data, len)
#define dbg_knot_xfr_exec_verb(cmds)
#define dbg_xfrin_verb(msg...)
#define dbg_xfrin_hex_verb(data, len)
#define dbg_xfrin_exec_verb(cmds)
#endif
/* Detail messages. */
#ifdef DEBUG_ENABLE_DETAILS
#define dbg_knot_xfr_detail(msg...) fprintf(stderr, msg)
#define dbg_knot_xfr_hex_detail(data, len) hex_print((data), (len))
#define dbg_knot_xfr_exec_detail(cmds) do { cmds } while (0)
#define dbg_xfrin_detail(msg...) fprintf(stderr, msg)
#define dbg_xfrin_hex_detail(data, len) hex_print((data), (len))
#define dbg_xfrin_exec_detail(cmds) do { cmds } while (0)
#else
#define dbg_knot_xfr_detail(msg...)
#define dbg_knot_xfr_hex_detail(data, len)
#define dbg_knot_xfr_exec_detail(cmds)
#define dbg_xfrin_detail(msg...)
#define dbg_xfrin_hex_detail(data, len)
#define dbg_xfrin_exec_detail(cmds)
#endif
/* No messages. */
#else
#define dbg_knot_xfr(msg...)
#define dbg_knot_xfr_hex(data, len)
#define dbg_knot_xfr_exec(cmds)
#define dbg_knot_xfr_verb(msg...)
#define dbg_knot_xfr_hex_verb(data, len)
#define dbg_knot_xfr_exec_verb(cmds)
#define dbg_knot_xfr_detail(msg...)
#define dbg_knot_xfr_hex_detail(data, len)
#define dbg_knot_xfr_exec_detail(cmds)
#define dbg_xfrin(msg...)
#define dbg_xfrin_hex(data, len)
#define dbg_xfrin_exec(cmds)
#define dbg_xfrin_verb(msg...)
#define dbg_xfrin_hex_verb(data, len)
#define dbg_xfrin_exec_verb(cmds)
#define dbg_xfrin_detail(msg...)
#define dbg_xfrin_hex_detail(data, len)
#define dbg_xfrin_exec_detail(cmds)
#endif
/******************************************************************************/
......
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