From 273a4d9803f1a92f0e248b707937703d84b0edc6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 9 Jan 2010 09:05:56 +1100 Subject: s4-debug: removed debug_ctx(). It didn't catch on :-) There was only one user, which isn't worth it for the overhead. --- lib/util/debug.h | 4 ---- 1 file changed, 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) /** -- cgit