diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2016-07-25 12:33:02 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2016-07-25 17:35:47 +0200 |
commit | d1c0e3755f2832270a16bdb2d350463409cad887 (patch) | |
tree | a416eac18b876eb5ac33667c955272990c257558 /openbsc/src | |
parent | bbbcfe5b7343e12d0ab16d5393bed7ebe6653adc (diff) |
log lchan_alloc() result
It is particularly interesting to see whether a given lchan type is allocated
on a dynamic timeslot.
Change-Id: I8a0bca6d9cd583a0988e5ee8f4e6f74f218f4185
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libbsc/chan_alloc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/chan_alloc.c b/openbsc/src/libbsc/chan_alloc.c index 27da20695..046ebfc1f 100644 --- a/openbsc/src/libbsc/chan_alloc.c +++ b/openbsc/src/libbsc/chan_alloc.c @@ -239,6 +239,10 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type, if (lchan) { lchan->type = type; + LOGP(DRLL, LOGL_INFO, "%s Allocating lchan=%u as %s\n", + gsm_ts_and_pchan_name(lchan->ts), + lchan->nr, gsm_lchant_name(lchan->type)); + /* clear sapis */ memset(lchan->sapis, 0, ARRAY_SIZE(lchan->sapis)); @@ -248,6 +252,10 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type, lchan->broken_reason = ""; } else { struct challoc_signal_data sig; + + LOGP(DRLL, LOGL_ERROR, "Failed to allocate %s channel\n", + gsm_lchant_name(type)); + sig.bts = bts; sig.type = type; osmo_signal_dispatch(SS_CHALLOC, S_CHALLOC_ALLOC_FAIL, &sig); |