From 86cff1dbe23bb1e46cf9c9c3c3ec20058f09ed6e Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Sun, 28 Jun 2015 20:44:37 +0200 Subject: [PATCH] tevent: add and use debug class for tevent MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Ralph Boehme Reviewed-by: Guenther Deschner Autobuild-User(master): Günther Deschner Autobuild-Date(master): Wed Jul 1 23:04:00 CEST 2015 on sn-devel-104 --- lib/util/debug.c | 1 + lib/util/debug.h | 1 + lib/util/tevent_debug.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/lib/util/debug.c b/lib/util/debug.c index 6b8fc0c4a81..726c682aafc 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -440,6 +440,7 @@ static const char *default_classname_table[] = { [DBGC_SCAVENGER] = "scavenger", [DBGC_DNS] = "dns", [DBGC_LDB] = "ldb", + [DBGC_TEVENT] = "tevent", }; /* diff --git a/lib/util/debug.h b/lib/util/debug.h index 9baf762a045..c312bbf7373 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -88,6 +88,7 @@ bool dbghdr( int level, const char *location, const char *func); #define DBGC_SCAVENGER 20 #define DBGC_DNS 21 #define DBGC_LDB 22 +#define DBGC_TEVENT 23 /* So you can define DBGC_CLASS before including debug.h */ #ifndef DBGC_CLASS diff --git a/lib/util/tevent_debug.c b/lib/util/tevent_debug.c index bfbaed648e5..48f65299c5d 100644 --- a/lib/util/tevent_debug.c +++ b/lib/util/tevent_debug.c @@ -19,6 +19,9 @@ #include "includes.h" #include +#undef DBGC_CLASS +#define DBGC_CLASS DBGC_TEVENT + static void samba_tevent_debug(void *context, enum tevent_debug_level level, const char *fmt, -- 2.11.4.GIT