diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-05-30 12:49:47 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-05-30 14:32:59 +0000 |
commit | 18a4ae818ff7b94630affb6994a560f747ca5102 (patch) | |
tree | 0b0263172c6de4113e9ddff01725fd7d09e956d5 /src/libbsc | |
parent | 71e5a827ef2f157dc69f549eadc48c308099dc88 (diff) |
chan_alloc: Print bts nr on chan alloc failure
Also change format of related debug message to match similar format than
gsm_ts_and_pchan_name().
Change-Id: Id4f875944c40fd862fc63feec82216c45d2e41c2
Diffstat (limited to 'src/libbsc')
-rw-r--r-- | src/libbsc/chan_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libbsc/chan_alloc.c b/src/libbsc/chan_alloc.c index d773382af..4eccff0df 100644 --- a/src/libbsc/chan_alloc.c +++ b/src/libbsc/chan_alloc.c @@ -338,7 +338,7 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type, struct gsm_lchan *lchan = NULL; enum gsm_phys_chan_config first, first_cbch, second, second_cbch; - LOGP(DRLL, LOGL_DEBUG, "bts-%d lchan_alloc(%s)\n", bts->nr, gsm_lchant_name(type)); + LOGP(DRLL, LOGL_DEBUG, "(bts=%d) lchan_alloc(%s)\n", bts->nr, gsm_lchant_name(type)); switch (type) { case GSM_LCHAN_SDCCH: @@ -488,8 +488,8 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type, } else { struct challoc_signal_data sig; - LOGP(DRLL, LOGL_ERROR, "Failed to allocate %s channel\n", - gsm_lchant_name(type)); + LOGP(DRLL, LOGL_ERROR, "(bts=%d) Failed to allocate %s channel\n", + bts->nr, gsm_lchant_name(type)); sig.bts = bts; sig.type = type; |