tevent: add and use debug class for tevent
authorRalph Boehme <slow@samba.org>
Sun, 28 Jun 2015 18:44:37 +0000 (20:44 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 1 Jul 2015 21:04:00 +0000 (23:04 +0200)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Jul  1 23:04:00 CEST 2015 on sn-devel-104

lib/util/debug.c
lib/util/debug.h
lib/util/tevent_debug.c

index 6b8fc0c4a81e0157366df529c70936fc8386f4f4..726c682aafcd01cc86fe6656e9adba59490a9d90 100644 (file)
@@ -440,6 +440,7 @@ static const char *default_classname_table[] = {
        [DBGC_SCAVENGER] =      "scavenger",
        [DBGC_DNS] =            "dns",
        [DBGC_LDB] =            "ldb",
+       [DBGC_TEVENT] =         "tevent",
 };
 
 /*
index 9baf762a045d35e5184ce452c92046a45da08796..c312bbf7373ebdec71ccf70285a899af47fab4a9 100644 (file)
@@ -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
index bfbaed648e5da0d6871dca454d5ef9b4f63c926e..48f65299c5d18d7e1a593e546efb408b24025e90 100644 (file)
@@ -19,6 +19,9 @@
 #include "includes.h"
 #include <tevent.h>
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_TEVENT
+
 static void samba_tevent_debug(void *context,
                               enum tevent_debug_level level,
                               const char *fmt,