aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-06-02 02:55:07 +0000
committerHolger Freyther <zecke@selfish.org>2009-06-02 02:55:07 +0000
commit4f584c3d4b2ec3b9770880899b94d1683d5ce2ee (patch)
tree9170551da691a03a9540974650a180dcfc0a6094 /include
parentc21cfbc4aa07567751fb378b1ad0264936ffa2df (diff)
[lchan] Log increase/decrease of channel use count (Andreas Eversberg)
This is part of patch 22 and will log changes in the usecount of the lchan.
Diffstat (limited to 'include')
-rw-r--r--include/openbsc/gsm_data.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/openbsc/gsm_data.h b/include/openbsc/gsm_data.h
index 145e406f9..d8b4c3ef7 100644
--- a/include/openbsc/gsm_data.h
+++ b/include/openbsc/gsm_data.h
@@ -40,10 +40,18 @@ typedef int gsm_cbfn(unsigned int hooknum,
#define LCHAN_RELEASE_TIMEOUT 4, 0
#define use_lchan(lchan) \
do { lchan->use_count++; \
+ DEBUGP(DCC, "lchan (bts=%d,trx=%d,ts=%d,ch=%d) increases usage to: %d\n", \
+ lchan->ts->trx->bts->nr, lchan->ts->trx->nr, lchan->ts->nr, \
+ lchan->nr, lchan->use_count); \
bsc_schedule_timer(&lchan->release_timer, LCHAN_RELEASE_TIMEOUT); } while(0);
#define put_lchan(lchan) \
- do { lchan->use_count--; } while(0);
+ do { lchan->use_count--; \
+ DEBUGP(DCC, "lchan (bts=%d,trx=%d,ts=%d,ch=%d) decreases usage to: %d\n", \
+ lchan->ts->trx->bts->nr, lchan->ts->trx->nr, lchan->ts->nr, \
+ lchan->nr, lchan->use_count); \
+ } while(0);
+
/* communications link with a BTS */
struct gsm_bts_link {