diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/logger.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/logger.c b/main/logger.c index 3f0e37583..50d8ca1ab 100644 --- a/main/logger.c +++ b/main/logger.c @@ -830,7 +830,11 @@ void ast_backtrace(void) if ((strings = backtrace_symbols(addresses, count))) { ast_log(LOG_DEBUG, "Got %d backtrace record%c\n", count, count != 1 ? 's' : ' '); for (i=0; i < count ; i++) { +#if __WORDSIZE == 32 ast_log(LOG_DEBUG, "#%d: [%08X] %s\n", i, (unsigned int)addresses[i], strings[i]); +#elif __WORDSIZE == 64 + ast_log(LOG_DEBUG, "#%d: [%016lX] %s\n", i, (unsigned long)addresses[i], strings[i]); +#endif } free(strings); } else { |