[asterisk-commits] alecdavis: branch 1.4 r310779 - /branches/1.4/main/utils.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 14 19:26:15 CDT 2011
Author: alecdavis
Date: Mon Mar 14 19:26:09 2011
New Revision: 310779
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=310779
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.4/main/utils.c
Modified: branches/1.4/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/utils.c?view=diff&rev=310779&r1=310778&r2=310779
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Mon Mar 14 19:26:09 2011
@@ -726,7 +726,7 @@
AST_LIST_TRAVERSE(&lock_infos, lock_info, entry) {
int i;
if (lock_info->num_locks) {
- ast_dynamic_str_append(&str, 0, "=== Thread ID: %ld (%s)\n", (long) lock_info->thread_id,
+ ast_dynamic_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