From 734eb40e72a331802620eafa98b9fc18d5620351 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Mon, 10 Sep 2018 09:15:52 -0400 Subject: 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 --- src/common/rsl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/common/rsl.c') 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); } -- cgit v1.2.3