use get_[lp]chan_name() functions for telnet interface
This commit is contained in:
parent
a72c98eb2f
commit
d4fc1b29ca
|
@ -244,15 +244,15 @@ static void show_trx(int fd, struct gsm_bts_trx *trx) {
|
||||||
|
|
||||||
static void show_ts(int fd, struct gsm_bts_trx_ts *ts) {
|
static void show_ts(int fd, struct gsm_bts_trx_ts *ts) {
|
||||||
WRITE_CONNECTION(fd,
|
WRITE_CONNECTION(fd,
|
||||||
" TS: #%u pchan: %d flags: %u\n",
|
" TS: #%u pchan: %12s flags: %u\n",
|
||||||
ts->nr, ts->pchan, ts->flags);
|
ts->nr, gsm_pchan_name(ts->pchan), ts->flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void show_lchan(int fd, struct gsm_lchan *lchan) {
|
static void show_lchan(int fd, struct gsm_lchan *lchan) {
|
||||||
struct gsm_subscriber *subscr = lchan->subscr;
|
struct gsm_subscriber *subscr = lchan->subscr;
|
||||||
WRITE_CONNECTION(fd,
|
WRITE_CONNECTION(fd,
|
||||||
" LCHAN: #%u type: %d subscriber: %s/%s/%s use: %d loc: %p\n",
|
" LCHAN: #%u type: %7s subscriber: %s/%s/%s use: %d loc: %p\n",
|
||||||
lchan->nr, lchan->type,
|
lchan->nr, gsm_lchan_name(lchan->type),
|
||||||
subscr ? subscr->imsi : "na",
|
subscr ? subscr->imsi : "na",
|
||||||
subscr ? subscr->tmsi : "na",
|
subscr ? subscr->tmsi : "na",
|
||||||
subscr ? subscr->name : "na",
|
subscr ? subscr->name : "na",
|
||||||
|
|
Loading…
Reference in New Issue