VTY: also print the active phan config in ts_dump_vty()

Change-Id: I45c93a737ad82a2525f941e89cd19d4cedbf6f02
This commit is contained in:
Vadim Yanitskiy 2019-11-02 00:42:13 +07:00
parent 00201b64f0
commit 9378522a0c
1 changed files with 3 additions and 2 deletions

View File

@ -1219,9 +1219,10 @@ static void vty_out_dyn_ts_details(struct vty *vty, struct gsm_bts_trx_ts *ts)
static void ts_dump_vty(struct vty *vty, struct gsm_bts_trx_ts *ts)
{
vty_out(vty, "BTS %u, TRX %u, Timeslot %u, phys cfg %s",
vty_out(vty, "BTS %u, TRX %u, Timeslot %u, phys cfg %s (active %s)",
ts->trx->bts->nr, ts->trx->nr, ts->nr,
gsm_pchan_name(ts->pchan_on_init));
gsm_pchan_name(ts->pchan_on_init),
gsm_pchan_name(ts->pchan_is));
if (ts->pchan_is != ts->pchan_on_init)
vty_out(vty, " (%s mode)", gsm_pchan_name(ts->pchan_is));
vty_out(vty, ", TSC %u%s NM State: ", gsm_ts_tsc(ts), VTY_NEWLINE);