debug: remove currently unneeded this_log_level
authorMichael Adam <obnox@samba.org>
Thu, 27 Aug 2009 11:48:25 +0000 (13:48 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 27 Aug 2009 11:48:25 +0000 (13:48 +0200)
Michael

debug.c
debug.h

diff --git a/debug.c b/debug.c
index 34545732ae05b96d837ff500be76e539f30d2e10..e9224e361ab6b3f9a5f960b3a25ea117d446842d 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -8,7 +8,6 @@
 #include "debug.h"
 
 int LogLevel = DEBUG_NOTICE;
-int this_log_level = 0;
 
 static struct timeval timeval_current(void)
 {
diff --git a/debug.h b/debug.h
index eddd016506a0efa8cb49a0070c29452646bc8b0e..3962cb54f952887a164c0c15d52c6d3f2f3c04b2 100644 (file)
--- a/debug.h
+++ b/debug.h
@@ -14,12 +14,11 @@ enum debug_level {
 
 #define DEBUGLVL(lvl) ((lvl) <= LogLevel)
 
-#define DEBUG(lvl, x) do { if DEBUGLVL(lvl) { this_log_level = (lvl); do_debug x; }} while (0)
+#define DEBUG(lvl, x) do { if DEBUGLVL(lvl) { do_debug x; }} while (0)
 
 extern void (*do_debug_v)(const char *, va_list ap);
 
 extern int LogLevel;
-extern int this_log_level;
 
 void do_debug(const char *format, ...);