summaryrefslogtreecommitdiff
path: root/lib/util/debug.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-09 09:05:56 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-09 10:15:13 +1100
commit273a4d9803f1a92f0e248b707937703d84b0edc6 (patch)
tree7dc21b73ed61400a5eda8123cf9580dab5487959 /lib/util/debug.h
parent651ddb720a2dd80c9abd65563af54a512525b622 (diff)
downloadsamba-273a4d9803f1a92f0e248b707937703d84b0edc6.tar.gz
s4-debug: removed debug_ctx(). It didn't catch on :-)
There was only one user, which isn't worth it for the overhead.
Diffstat (limited to 'lib/util/debug.h')
-rw-r--r--lib/util/debug.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/util/debug.h b/lib/util/debug.h
index f0d16952a98..eb2151fc51e 100644
--- a/lib/util/debug.h
+++ b/lib/util/debug.h
@@ -45,17 +45,13 @@ struct debug_ops {
#define DEBUGLEVEL *debug_level
extern int DEBUGLEVEL;
-#define debug_ctx() (_debug_ctx?_debug_ctx:(_debug_ctx=talloc_new(NULL)))
-
#define DEBUGLVL(level) ((level) <= DEBUGLEVEL)
#define _DEBUG(level, body, header) do { \
if (DEBUGLVL(level)) { \
- void* _debug_ctx=NULL; \
if (header) { \
dbghdr(level, __location__, __FUNCTION__); \
} \
dbgtext body; \
- talloc_free(_debug_ctx); \
} \
} while (0)
/**