[asterisk-commits] rizzo: trunk r126835 - /trunk/main/logger.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 1 07:29:32 CDT 2008
Author: rizzo
Date: Tue Jul 1 07:29:31 2008
New Revision: 126835
URL: http://svn.digium.com/view/asterisk?view=rev&rev=126835
Log:
use %p to print a pointer
Modified:
trunk/main/logger.c
Modified: trunk/main/logger.c
URL: http://svn.digium.com/view/asterisk/trunk/main/logger.c?view=diff&rev=126835&r1=126834&r2=126835
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Tue Jul 1 07:29:31 2008
@@ -1216,11 +1216,7 @@
if ((strings = backtrace_symbols(backtrace->addresses, backtrace->num_frames))) {
ast_debug(1, "Got %d backtrace record%c\n", backtrace->num_frames, backtrace->num_frames != 1 ? 's' : ' ');
for (i = 0; i < backtrace->num_frames; i++) {
-#if __WORDSIZE == 32
- ast_log(LOG_DEBUG, "#%d: [%08X] %s\n", i, (unsigned int)backtrace->addresses[i], strings[i]);
-#elif __WORDSIZE == 64
- ast_log(LOG_DEBUG, "#%d: [%016lX] %s\n", i, (unsigned long)backtrace->addresses[i], strings[i]);
-#endif
+ ast_log(LOG_DEBUG, "#%d: [%p] %s\n", i, backtrace->addresses[i], strings[i]);
}
free(strings);
} else {
More information about the asterisk-commits
mailing list