git.samba.org
/
obnox
/
misc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c0eacf
)
debug: remove currently unneeded this_log_level
author
Michael Adam
<obnox@samba.org>
Thu, 27 Aug 2009 11:48:25 +0000
(13:48 +0200)
committer
Michael Adam
<obnox@samba.org>
Thu, 27 Aug 2009 11:48:25 +0000
(13:48 +0200)
Michael
debug.c
patch
|
blob
|
history
debug.h
patch
|
blob
|
history
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, ...);