diff options
Diffstat (limited to 'source4/include')
-rw-r--r-- | source4/include/debug.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/include/debug.h b/source4/include/debug.h index 40d04766e1..8ff937e7b9 100644 --- a/source4/include/debug.h +++ b/source4/include/debug.h @@ -18,6 +18,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +/* If we have these macros, we can add additional info to the header. */ + +#ifdef HAVE_FUNCTION_MACRO +#define FUNCTION_MACRO (__FUNCTION__) +#else +#define FUNCTION_MACRO ("") +#endif + /* the debug operations structure - contains function pointers to various debug implementations of each operation */ struct debug_ops { @@ -44,7 +52,7 @@ extern int DEBUGLEVEL; #define _DEBUG(level, body, header) do { \ if (DEBUGLVL(level)) { \ if (header) { \ - do_debug_header(level, __location__, __FUNCTION__); \ + do_debug_header(level, __location__, FUNCTION_MACRO); \ } \ do_debug body; \ } \ |