summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-03-31 12:29:50 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-03-31 12:29:50 +0000
commit8bb5a02f8c2dda5e6045bec37f7befe536042d11 (patch)
treeff6a44d40363f910dc3477ea3fed739a784afadc /source3/lib
parent76ba946a2ebc2acca2f92931b6426e058ee75e26 (diff)
downloadsamba-8bb5a02f8c2dda5e6045bec37f7befe536042d11.tar.gz
samba-8bb5a02f8c2dda5e6045bec37f7befe536042d11.tar.bz2
samba-8bb5a02f8c2dda5e6045bec37f7befe536042d11.zip
Fix formatting of back traces - pathc by metze
(This used to be commit 9cc17bcfe633496ba6270fd82963ff768ae017b0)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index da98f5a3cf..3ecfc92552 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1431,16 +1431,17 @@ void smb_panic(const char *why)
WEXITSTATUS(result)));
}
DEBUG(0,("PANIC: %s\n", why));
- DEBUG(0, ("%d stack frames:\n", backtrace_size));
#ifdef HAVE_BACKTRACE_SYMBOLS
/* get the backtrace (stack frames) */
backtrace_size = backtrace(backtrace_stack,BACKTRACE_STACK_SIZE);
backtrace_strings = backtrace_symbols(backtrace_stack, backtrace_size);
+
+ DEBUG(0, ("BACKTRACE: %d stack frames:\n", backtrace_size));
if (backtrace_strings) {
for (i = 0; i < backtrace_size; i++)
- DEBUG(0, (" #%u %s\n", i, backtrace_strings[i]));
+ DEBUGADD(0, (" #%u %s\n", i, backtrace_strings[i]));
SAFE_FREE(backtrace_strings);
}