[asterisk-commits] rmudgett: branch 11 r380612 - in /branches/11: ./ include/asterisk/channel.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 30 18:30:57 CST 2013
Author: rmudgett
Date: Wed Jan 30 18:30:53 2013
New Revision: 380612
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380612
Log:
Make CHECK_BLOCKING() debug message more useful.
Change the displayed pthread value to hex format so it can be easily
matched with CLI core show threads or gdb.
........
Merged revisions 380611 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/include/asterisk/channel.h
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/include/asterisk/channel.h
URL: http://svnview.digium.com/svn/asterisk/branches/11/include/asterisk/channel.h?view=diff&rev=380612&r1=380611&r2=380612
==============================================================================
--- branches/11/include/asterisk/channel.h (original)
+++ branches/11/include/asterisk/channel.h Wed Jan 30 18:30:53 2013
@@ -2447,7 +2447,8 @@
#define CHECK_BLOCKING(c) do { \
if (ast_test_flag(ast_channel_flags(c), AST_FLAG_BLOCKING)) {\
- ast_debug(1, "Thread %ld Blocking '%s', already blocked by thread %ld in procedure %s\n", (long) pthread_self(), ast_channel_name(c), (long) ast_channel_blocker(c), ast_channel_blockproc(c)); \
+ ast_debug(1, "Thread %p is blocking '%s', already blocked by thread %p in procedure %s\n", \
+ (void *) pthread_self(), ast_channel_name(c), (void *) ast_channel_blocker(c), ast_channel_blockproc(c)); \
} else { \
ast_channel_blocker_set((c), pthread_self()); \
ast_channel_blockproc_set((c), __PRETTY_FUNCTION__); \
More information about the asterisk-commits
mailing list