vty: show lchan summary: also show lchan->state

Change-Id: If7ae92b8d501b51bbe8a165c223734e169a8bb97
This commit is contained in:
Neels Hofmeyr 2016-06-14 01:31:38 +02:00 committed by Harald Welte
parent 82c8f75f71
commit efedf80526
1 changed files with 5 additions and 2 deletions

View File

@ -1120,10 +1120,13 @@ static void lchan_dump_short_vty(struct vty *vty, struct gsm_lchan *lchan)
lchan->meas_rep_idx, 1);
mr = &lchan->meas_rep[idx];
vty_out(vty, "BTS %u, TRX %u, Timeslot %u, Lchan %u, Type %s - "
vty_out(vty, "BTS %u, TRX %u, Timeslot %u %s, Lchan %u, Type %s, State %s - "
"L1 MS Power: %u dBm RXL-FULL-dl: %4d dBm RXL-FULL-ul: %4d dBm%s",
lchan->ts->trx->bts->nr, lchan->ts->trx->nr, lchan->ts->nr,
lchan->nr, gsm_lchant_name(lchan->type), mr->ms_l1.pwr,
gsm_pchan_name(lchan->ts->pchan),
lchan->nr,
gsm_lchant_name(lchan->type), gsm_lchans_name(lchan->state),
mr->ms_l1.pwr,
rxlev2dbm(mr->dl.full.rx_lev),
rxlev2dbm(mr->ul.full.rx_lev),
VTY_NEWLINE);