aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/rsl.c
diff options
context:
space:
mode:
authorKeith Whyte <keith@rhizomatica.org>2018-09-10 09:15:52 -0400
committerNeels Hofmeyr <neels@hofmeyr.de>2018-09-11 00:28:10 +0200
commit734eb40e72a331802620eafa98b9fc18d5620351 (patch)
treee90b16aa53de8eea3122deca158103796b46cc03 /src/common/rsl.c
parentcb012598045ab39cd602db9d2ee0eddfa7bcbb7d (diff)
log: add error log for RSL Chan Mode Modif
Add log context to chan_mode error in rsl_rx_mode_modif(). Tweaked-by: neels Change-Id: I945cf1ca8660ad5daf097edab1833bbc74b6185f
Diffstat (limited to 'src/common/rsl.c')
-rw-r--r--src/common/rsl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index ad2d4de0..2aa7f4de 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1499,7 +1499,10 @@ static int rsl_rx_mode_modif(struct msgb *msg)
lchan_tchmode_from_cmode(lchan, cm);
if (bts_supports_cm(lchan->ts->trx->bts, ts_pchan(lchan->ts), lchan->tch_mode) != 1) {
- LOGP(DRSL, LOGL_ERROR, "invalid mode/codec instructed by BSC, check BSC configuration.\n");
+ LOGP(DRSL, LOGL_ERROR,
+ "%s %s: invalid mode: %s (wrong BSC configuration?)\n",
+ gsm_ts_and_pchan_name(lchan->ts), gsm_lchan_name(lchan),
+ gsm48_chan_mode_name(lchan->tch_mode));
return rsl_tx_mode_modif_nack(lchan, RSL_ERR_SERV_OPT_UNAVAIL);
}