mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
bsc_vty: Prevent printing -1 as unsigned integer for timeslot TSC
This commit is contained in:
@@ -732,7 +732,8 @@ 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, TSC %u",
|
||||
ts->trx->bts->nr, ts->trx->nr, ts->nr,
|
||||
gsm_pchan_name(ts->pchan), ts->tsc);
|
||||
gsm_pchan_name(ts->pchan),
|
||||
ts->tsc == -1 ? ts->trx->bts->tsc : ts->tsc);
|
||||
if (ts->pchan == GSM_PCHAN_TCH_F_PDCH)
|
||||
vty_out(vty, " (%s mode)",
|
||||
ts->flags & TS_F_PDCH_MODE ? "PDCH" : "TCH/F");
|
||||
|
Reference in New Issue
Block a user