From b1be2755fbb3d6c28ba9955aeda057d31a77083e Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Mon, 14 Jan 2013 01:13:47 +0100 Subject: [PATCH 1/2] debug: Add debugclass for DNS server Signed-off-by: Kai Blin --- lib/util/debug.c | 1 + lib/util/debug.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lib/util/debug.c b/lib/util/debug.c index 7509f90..92f1c0a 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -176,6 +176,7 @@ static const char *default_classname_table[] = { "msdfs", /* DBGC_MSDFS */ "dmapi", /* DBGC_DMAPI */ "registry", /* DBGC_REGISTRY */ + "dns", /* DBGC_DNS */ NULL }; diff --git a/lib/util/debug.h b/lib/util/debug.h index 2566418..c9abc7d 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -79,9 +79,10 @@ bool dbghdr( int level, const char *location, const char *func); #define DBGC_MSDFS 17 #define DBGC_DMAPI 18 #define DBGC_REGISTRY 19 +#define DBGC_DNS 20 /* Always ensure this is updated when new fixed classes area added, to ensure the array in debug.c is the right size */ -#define DBGC_MAX_FIXED 19 +#define DBGC_MAX_FIXED 20 /* So you can define DBGC_CLASS before including debug.h */ #ifndef DBGC_CLASS -- 1.7.0.4