From cdd8074433d8ada867ba9b2bc11db098fd363035 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 4 Mar 2020 07:38:23 +0100 Subject: [PATCH] MINOR: debug: report the number of entries in the backtrace It's useful to get an indication of unresolved stuff or memory corruption to have the apparent depth of the stack trace in the output, especially if we dump nothing. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index ec905377b..a16bd4f72 100644 --- a/src/debug.c +++ b/src/debug.c @@ -111,7 +111,7 @@ void ha_thread_dump(struct buffer *buf, int thr, int calling_tid) would produce similar output to the following: */ if (nptrs) - chunk_appendf(buf, " call trace:\n"); + chunk_appendf(buf, " call trace(%d):\n", nptrs); #ifndef USE_DL /* if we can't rely on dladdr1() we won't figure what level is