osmo-bsc/openbsc/src
Neels Hofmeyr b748012d31 bsc_vty: include dyn TS info in vty show lchan
Extend both 'show lchan <bts> <trx> <lchan>' and 'show lchan summary' to
include information on dynamic timeslots.

Have one common function that prints " as foo" or " switching foo -> bar" to
the vty, use it in lchan_dump_full_vty() and lchan_dump_short_vty().

In lchan_dump_short_vty(), split the vty_out call in two in order to interleave
the dyn ts info right after the pchan.

The summary hence looks e.g. like this for osmocom style dyn ts:

    BTS 0, TRX 0, Timeslot 5 TCH/F_TCH/H_PDCH as PDCH, Lchan 0, Type NONE, State ACTIVE - L1 MS Power: 0 dBm RXL-FULL-dl: -110 dBm RXL-FULL-ul: -110 dBm

or

    BTS 0, TRX 0, Timeslot 4 TCH/F_TCH/H_PDCH switching NONE -> PDCH, Lchan 0, Type NONE, State BROKEN UNUSABLE - L1 MS Power: 0 dBm RXL-FULL-dl: -110 dBm RXL-FULL-ul: -110 dBm

Change-Id: I3eb72ac7f0a520a8eefe171b9fb357f149aa3fda
2016-11-03 12:37:03 +00:00
..
gprs sndcp: Fixups for sndcp layer based on coverity-scan suggestions 2016-10-28 13:43:10 +00:00
ipaccess msgb talloc ctx: initialize in all main() scopes 2016-10-13 13:14:41 +00:00
libbsc bsc_vty: include dyn TS info in vty show lchan 2016-11-03 12:37:03 +00:00
libcommon Replace magic number with define 2016-10-18 16:19:33 +02:00
libfilter Consistenly format variables in */Makefile.am files 2016-09-15 15:55:02 +02:00
libiu info log: iu: add line break to and tweak rx RAB Ass Resp log 2016-10-30 18:28:27 +00:00
libmgcp COSMETIC: 'if' is not a function, so there is space before '(' 2016-09-28 00:47:28 +00:00
libmsc mncc_builtin: Properly reject DTMF 2016-11-02 09:20:54 +00:00
libtrau Consistenly format variables in */Makefile.am files 2016-09-15 15:55:02 +02:00
osmo-bsc msgb talloc ctx: initialize in all main() scopes 2016-10-13 13:14:41 +00:00
osmo-bsc_mgcp msgb talloc ctx: initialize in all main() scopes 2016-10-13 13:14:41 +00:00
osmo-bsc_nat msgb ctx: use new msgb_talloc_ctx_init(), don't access talloc_msgb_ctx 2016-10-13 13:14:41 +00:00
osmo-nitb Cosmetic: Add missing switch to usage help 2016-11-01 21:56:23 +00:00
utils msgb talloc ctx: initialize in all main() scopes 2016-10-13 13:14:41 +00:00
Makefile.am Consistenly format variables in */Makefile.am files 2016-09-15 15:55:02 +02:00