]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make CHECK_BLOCKING() debug message more useful.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 31 Jan 2013 00:22:20 +0000 (00:22 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 31 Jan 2013 00:22:20 +0000 (00:22 +0000)
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

include/asterisk/channel.h

index 6bbf17f02939e68d21351a9d83e20df4ce7ae2bd..a3f0c3d292f79106c5a215c353255ff89ab08ba9 100644 (file)
@@ -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__; \