summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-09 20:30:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:57 -0500
commit8d15aee01757658c62ef301829c4488b4ce70b4d (patch)
tree18980b00a69b2603e71e23d4f32588de9fc8ae1b /source4/include
parent3c13509c06b5ff969e51f7cb552e525fc627c1ed (diff)
downloadsamba-8d15aee01757658c62ef301829c4488b4ce70b4d.tar.gz
samba-8d15aee01757658c62ef301829c4488b4ce70b4d.tar.bz2
samba-8d15aee01757658c62ef301829c4488b4ce70b4d.zip
r12799: print out function and location too
metze (This used to be commit a5ef3eef9cbedd273556068ba59c07ccb0060098)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/include/debug.h b/source4/include/debug.h
index eaf53bad6a..d92232c645 100644
--- a/source4/include/debug.h
+++ b/source4/include/debug.h
@@ -35,7 +35,7 @@ struct debug_ops {
void (*log_task_id)(int fd);
};
-void do_debug_header(int level);
+void do_debug_header(int level, const char *location, const char *func);
void do_debug(const char *, ...) PRINTF_ATTRIBUTE(1,2);
extern int DEBUGLEVEL;
@@ -44,7 +44,7 @@ extern int DEBUGLEVEL;
#define _DEBUG(level, body, header) do { \
if (DEBUGLVL(level)) { \
if (header) { \
- do_debug_header(level); \
+ do_debug_header(level, __location__, __FUNCTION__); \
} \
do_debug body; \
} \