[asterisk-commits] alecdavis: branch 1.6.2 r310780 - in /branches/1.6.2: ./ main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 14 19:32:00 CDT 2011


Author: alecdavis
Date: Mon Mar 14 19:31:56 2011
New Revision: 310780

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=310780
Log:
Merged revisions 310779 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r310779 | alecdavis | 2011-03-15 13:26:09 +1300 (Tue, 15 Mar 2011) | 10 lines
  
  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.6.2/   (props changed)
    branches/1.6.2/main/utils.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: branches/1.6.2/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/utils.c?view=diff&rev=310780&r1=310779&r2=310780
==============================================================================
--- branches/1.6.2/main/utils.c (original)
+++ branches/1.6.2/main/utils.c Mon Mar 14 19:31:56 2011
@@ -875,7 +875,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