mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s4-debug: removed debug_ctx(). It didn't catch on :-)
There was only one user, which isn't worth it for the overhead.
This commit is contained in:
parent
651ddb720a
commit
273a4d9803
@ -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)
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user