aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-11 18:04:54 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-11 18:04:54 +0000
commit7a783aed45aa433a010096485d4c53216b09c1dc (patch)
tree904789a633722b656efb01105652e0f514738ba8
parent833674330ea1996b2401f2093caea4f071419879 (diff)
Remove lines from the output related to the backtrace itself.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269936 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/logger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/logger.c b/main/logger.c
index cd7d7a3ed..70a877196 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -1134,8 +1134,8 @@ void ast_backtrace(void)
if ((strings = backtrace_symbols(bt->addresses, bt->num_frames))) {
ast_debug(1, "Got %d backtrace record%c\n", bt->num_frames, bt->num_frames != 1 ? 's' : ' ');
- for (i = 0; i < bt->num_frames; i++) {
- ast_log(LOG_DEBUG, "#%d: [%p] %s\n", i, bt->addresses[i], strings[i]);
+ for (i = 3; i < bt->num_frames - 2; i++) {
+ ast_log(LOG_DEBUG, "#%d: [%p] %s\n", i - 3, bt->addresses[i], strings[i]);
}
/* MALLOC_DEBUG will erroneously report an error here, unless we undef the macro. */