lchan: Improve error path logging in gsm_pchan2chan_nr()

Change-Id: I8d9da8e8433feb1f022dc2f5199f9c15c01e9312
This commit is contained in:
Pau Espin 2023-03-17 15:14:19 +01:00
parent ca72961bbd
commit 149de0c113
1 changed files with 4 additions and 4 deletions

View File

@ -367,13 +367,13 @@ static uint8_t gsm_pchan2chan_nr(enum gsm_phys_chan_config pchan,
cbits = ABIS_RSL_CHAN_NR_CBITS_BCCH;
break;
case GSM_PCHAN_NONE:
LOGP(DRSL, LOGL_ERROR, "Physical channel %s not expected!\n",
gsm_pchan_name(pchan));
LOGP(DRSL, LOGL_ERROR, "ts=%u,ss=%u Physical channel %s not expected!\n",
ts_nr, lchan_nr, gsm_pchan_name(pchan));
cbits = 0x00;
break;
default:
LOGP(DRSL, LOGL_ERROR, "Physical channel %s (0x%02x) not expected!\n",
gsm_pchan_name(pchan), (int)pchan);
LOGP(DRSL, LOGL_ERROR, "ts=%u,ss=%u Physical channel %s (0x%02x) not expected!\n",
ts_nr, lchan_nr, gsm_pchan_name(pchan), (int)pchan);
OSMO_ASSERT(0);
break;
}