[asterisk-commits] rmudgett: branch 1.8 r380611 - /branches/1.8/include/asterisk/channel.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 30 18:22:24 CST 2013


Author: rmudgett
Date: Wed Jan 30 18:22:20 2013
New Revision: 380611

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380611
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.

Modified:
    branches/1.8/include/asterisk/channel.h

Modified: branches/1.8/include/asterisk/channel.h
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/include/asterisk/channel.h?view=diff&rev=380611&r1=380610&r2=380611
==============================================================================
--- branches/1.8/include/asterisk/channel.h (original)
+++ branches/1.8/include/asterisk/channel.h Wed Jan 30 18:22:20 2013
@@ -2421,8 +2421,8 @@
 
 #define CHECK_BLOCKING(c) do { 	 \
 	if (ast_test_flag(c, AST_FLAG_BLOCKING)) {\
-		if (option_debug) \
-			ast_log(LOG_DEBUG, "Thread %ld Blocking '%s', already blocked by thread %ld in procedure %s\n", (long) pthread_self(), (c)->name, (long) (c)->blocker, (c)->blockproc); \
+		ast_debug(1, "Thread %p is blocking '%s', already blocked by thread %p in procedure %s\n", \
+			(void *) pthread_self(), (c)->name, (void *) (c)->blocker, (c)->blockproc); \
 	} else { \
 		(c)->blocker = pthread_self(); \
 		(c)->blockproc = __PRETTY_FUNCTION__; \




More information about the asterisk-commits mailing list