diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-01-09 09:05:56 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-09 10:15:13 +1100 |
commit | 273a4d9803f1a92f0e248b707937703d84b0edc6 (patch) | |
tree | 7dc21b73ed61400a5eda8123cf9580dab5487959 /lib | |
parent | 651ddb720a2dd80c9abd65563af54a512525b622 (diff) | |
download | samba-273a4d9803f1a92f0e248b707937703d84b0edc6.tar.gz samba-273a4d9803f1a92f0e248b707937703d84b0edc6.tar.bz2 samba-273a4d9803f1a92f0e248b707937703d84b0edc6.zip |
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')
-rw-r--r-- | lib/util/debug.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/util/debug.h b/lib/util/debug.h index f0d16952a9..eb2151fc51 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) /** |