From: Richard Mudgett Date: Thu, 31 Jan 2013 00:22:20 +0000 (+0000) Subject: Make CHECK_BLOCKING() debug message more useful. X-Git-Tag: 1.8.22.0-rc1~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=165410c0021ddcf655678e754387cbc78d50922d;p=thirdparty%2Fasterisk.git 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@380611 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 6bbf17f029..a3f0c3d292 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -2421,8 +2421,8 @@ static inline enum ast_t38_state ast_channel_get_t38_state(struct ast_channel *c #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__; \