diff options
author | Harald Welte <laforge@netfilter.org> | 2009-12-24 11:46:44 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-24 11:46:44 +0100 |
commit | d0c19148ddbf4484aa55d7e738df1996555c5859 (patch) | |
tree | 56bd39bcddaaf9b123f9b0779e19a4f6b7d7d849 /openbsc/include | |
parent | ae1f159dc48a64e337eeb98269922169108d0ddf (diff) |
[debug] Introduce DREF debug category for reference counting
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/debug.h | 1 | ||||
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/debug.h b/openbsc/include/openbsc/debug.h index a94be580e..f9c4afdbc 100644 --- a/openbsc/include/openbsc/debug.h +++ b/openbsc/include/openbsc/debug.h @@ -27,6 +27,7 @@ enum { DMGCP, DHO, DDB, + DREF, Debug_LastEntry, }; diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index ff01d7287..af72e4765 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -101,14 +101,14 @@ typedef int gsm_cbfn(unsigned int hooknum, #define LCHAN_RELEASE_TIMEOUT 20, 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", \ + DEBUGP(DREF, "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--; \ - DEBUGP(DCC, "lchan (bts=%d,trx=%d,ts=%d,ch=%d) decreases usage to: %d\n", \ + DEBUGP(DREF, "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); |