summaryrefslogtreecommitdiff
path: root/source4/lib
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/lib
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/lib')
-rw-r--r--source4/lib/debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/debug.c b/source4/lib/debug.c
index d0288f7ddc..9df6e573b0 100644
--- a/source4/lib/debug.c
+++ b/source4/lib/debug.c
@@ -45,9 +45,9 @@ static struct {
the backend for debug messages. Note that the DEBUG() macro has already
ensured that the log level has been met before this is called
*/
-void do_debug_header(int level)
+void do_debug_header(int level, const char *location, const char *func)
{
- log_timestring(level);
+ log_timestring(level, location, func);
log_task_id();
}
@@ -162,7 +162,7 @@ void print_suspicious_usage(const char* from, const char* info)
}
}
-void log_timestring(int level)
+void log_timestring(int level, const char *location, const char *func)
{
char *t = NULL;
char *s = NULL;
@@ -172,7 +172,7 @@ void log_timestring(int level)
t = timestring(NULL, time(NULL));
if (!t) return;
- asprintf(&s, "[%s, %d]\n", t, level);
+ asprintf(&s, "[%s, %d %s:%s()]\n", t, level, location, func);
talloc_free(t);
if (!s) return;