From 4b010997486b059b90be1f69783a451f400d7df7 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Mon, 14 Jan 2013 01:13:47 +0100 Subject: debug: Add debugclass for DNS server Signed-off-by: Kai Blin Reviewed-By: Amitay Isaacs --- 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 6207b610c8..34aa76fb5c 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 c61fd13165..feea0a8d94 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 -- cgit