fix gsm_lchan_and_pchan2chan_nr(): log proper lchan_nr value

VAMOS lchans are behind the primary ones in the ts->lchan[] array.
For example, for TCH/F, there is a primary ts->lchan[0] and a VAMOS
ts->lchan[1].  We should print 'ss 0' for both of them.

Change-Id: I8e7a5a2ecc9b9a33e3ddb76cb1bc04d7802fd320
This commit is contained in:
Vadim Yanitskiy 2022-05-27 17:36:18 +06:00
parent 725781d34e
commit 58ac749424
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ int gsm_lchan_and_pchan2chan_nr(const struct gsm_lchan *lchan, enum gsm_phys_cha
if (rc < 0)
LOG_LCHAN(lchan, LOGL_ERROR,
"Error encoding Channel Number: pchan %s ts %u ss %u%s\n",
gsm_pchan_name(lchan->ts->pchan_from_config), lchan->ts->nr, lchan->nr,
gsm_pchan_name(lchan->ts->pchan_from_config), lchan->ts->nr, lchan_nr,
lchan->vamos.is_secondary ? " (VAMOS shadow)" : "");
return rc;
}