[svn-commits] tilghman: trunk r269936 - /trunk/main/logger.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 11 13:04:57 CDT 2010


Author: tilghman
Date: Fri Jun 11 13:04:54 2010
New Revision: 269936

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=269936
Log:
Remove lines from the output related to the backtrace itself.

Modified:
    trunk/main/logger.c

Modified: trunk/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/logger.c?view=diff&rev=269936&r1=269935&r2=269936
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Fri Jun 11 13:04:54 2010
@@ -1134,8 +1134,8 @@
 
 	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. */




More information about the svn-commits mailing list