From 89644f40d77a71b25c0a5f50f8ae6bfbe0ddd2db Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 9 Jul 2013 13:55:44 +0200 Subject: [PATCH] lib/util: add 'ldb' debug class MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Metzmacher Reviewed-by: Björn Jacke (cherry picked from commit baecc863de0ceb64187c6eb3545bf28706bd84fc) --- 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 34aa76fb5c9..a46b2753cfc 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -178,6 +178,7 @@ static const char *default_classname_table[] = { "registry", /* DBGC_REGISTRY */ "scavenger", /* DBGC_SCAVENGER */ "dns", /* DBGC_DNS */ + "ldb", /* DBGC_LDB */ NULL }; diff --git a/lib/util/debug.h b/lib/util/debug.h index feea0a8d94e..bd7056e0c87 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -81,9 +81,10 @@ bool dbghdr( int level, const char *location, const char *func); #define DBGC_REGISTRY 19 #define DBGC_SCAVENGER 20 #define DBGC_DNS 21 +#define DBGC_LDB 22 /* 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 21 +#define DBGC_MAX_FIXED 22 /* So you can define DBGC_CLASS before including debug.h */ #ifndef DBGC_CLASS -- 2.11.4.GIT