[asterisk-commits] alecdavis: branch 1.8 r310781 - /branches/1.8/main/utils.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 14 20:01:00 CDT 2011
Author: alecdavis
Date: Mon Mar 14 20:00:55 2011
New Revision: 310781
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=310781
Log:
core show locks: display ThreadID in hexadecimal
Allow easier cross referencing of thread ID's with GDB backtraces
(closes issue #18968)
Reported by: alecdavis
Patches:
bug18968.diff.txt uploaded by alecdavis (license 585)
Modified:
branches/1.8/main/utils.c
Modified: branches/1.8/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/utils.c?view=diff&rev=310781&r1=310780&r2=310781
==============================================================================
--- branches/1.8/main/utils.c (original)
+++ branches/1.8/main/utils.c Mon Mar 14 20:00:55 2011
@@ -878,7 +878,7 @@
AST_LIST_TRAVERSE(&lock_infos, lock_info, entry) {
int i;
if (lock_info->num_locks) {
- ast_str_append(&str, 0, "=== Thread ID: %ld (%s)\n", (long) lock_info->thread_id,
+ ast_str_append(&str, 0, "=== Thread ID: 0x%lx (%s)\n", (long) lock_info->thread_id,
lock_info->thread_name);
pthread_mutex_lock(&lock_info->lock);
for (i = 0; str && i < lock_info->num_locks; i++) {
More information about the asterisk-commits
mailing list