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
This commit is contained in:
Keith Whyte 2018-09-10 09:15:52 -04:00 committed by Neels Hofmeyr
parent cb01259804
commit 734eb40e72
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}