summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-06-08 16:33:00 +0200
committerAndreas Eversberg2010-06-08 16:33:00 +0200
commit5c120fb5084aad712982f703244a35a9a7a3d8c4 (patch)
tree4dc061456365563f847e0b9c922a5ec7df5c58d3 /chan_lcr.c
parentTest patch #1 for chan_lcr, to debug the Asterisk freeze problem. (diff)
downloadlcr-5c120fb5084aad712982f703244a35a9a7a3d8c4.tar.gz
lcr-5c120fb5084aad712982f703244a35a9a7a3d8c4.tar.xz
lcr-5c120fb5084aad712982f703244a35a9a7a3d8c4.zip
Updated debugging patch.
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index cf711bc..d4510d6 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -225,7 +225,9 @@ static struct ast_channel_tech lcr_tech;
void lock_debug(char *text)
{
- printf("%s", text); fflush(stdout);
+ pthread_t tid = pthread_self();
+// printf("%s|%03x\n", text, ((tid>>6) | (tid>>3) | tid) & 0xfff); fflush(stdout);
+ printf("%s|%x\n", text, tid); fflush(stdout);
}
/*