From 5c120fb5084aad712982f703244a35a9a7a3d8c4 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 8 Jun 2010 16:33:00 +0200 Subject: [PATCH 1/1] Updated debugging patch. --- chan_lcr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } /* -- 2.13.6