error log: rsl_chan_activate_lchan: log channel mode error

Change-Id: I0f403b13ff9897770c0b855bf57a9440717b46e8
This commit is contained in:
Neels Hofmeyr 2016-07-18 23:56:08 +02:00
parent 2e84b60652
commit e2eb5cb6a1
1 changed files with 5 additions and 1 deletions

View File

@ -447,8 +447,12 @@ int rsl_chan_activate_lchan(struct gsm_lchan *lchan, uint8_t act_type,
struct gsm48_chan_desc cd;
rc = channel_mode_from_lchan(&cm, lchan);
if (rc < 0)
if (rc < 0) {
LOGP(DRSL, LOGL_ERROR,
"%s Cannot find channel mode from lchan type\n",
gsm_ts_and_pchan_name(lchan->ts));
return rc;
}
/* If a TCH_F/PDCH TS is in PDCH mode, deactivate PDCH first. */
if (lchan->ts->pchan == GSM_PCHAN_TCH_F_PDCH