[PATCH 1/5] debug: Add debugclass for DNS server

Kai Blin kai at samba.org
Thu May 16 04:00:07 MDT 2013


Signed-off-by: Kai Blin <kai at samba.org>
---
 lib/util/debug.c | 1 +
 lib/util/debug.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/util/debug.c b/lib/util/debug.c
index 6207b61..34aa76f 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -177,6 +177,7 @@ static const char *default_classname_table[] = {
 	"dmapi",	     /* DBGC_DMAPI	  */
 	"registry",          /* DBGC_REGISTRY     */
 	"scavenger",         /* DBGC_SCAVENGER    */
+	"dns",               /* DBGC_DNS          */
 	NULL
 };
 
diff --git a/lib/util/debug.h b/lib/util/debug.h
index c61fd13..feea0a8 100644
--- a/lib/util/debug.h
+++ b/lib/util/debug.h
@@ -80,9 +80,10 @@ bool dbghdr( int level, const char *location, const char *func);
 #define DBGC_DMAPI		18
 #define DBGC_REGISTRY		19
 #define DBGC_SCAVENGER		20
+#define DBGC_DNS		21
 
 /* 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		20
+#define DBGC_MAX_FIXED		21
 
 /* So you can define DBGC_CLASS before including debug.h */
 #ifndef DBGC_CLASS
-- 
1.8.1.2



More information about the samba-technical mailing list