aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-29 10:52:38 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-29 10:53:25 +0100
commit1887f9d153497adc37cec5b8db6b7423ff64d6c0 (patch)
tree43b4b9b971ba3dd6549dba33c5d845dbf9f59fd5 /openbsc/src/vty_interface.c
parent8e93b7908f09e5c356989677e21dd8b8e9cb4371 (diff)
Introduce gsm_lchans_name() for human readable lchan state name
Also, use this new function to dump lchan state on VTY and to improve readability of RSL log messages.
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r--openbsc/src/vty_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index 59865d52a..22284d803 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -571,7 +571,8 @@ static void lchan_dump_vty(struct vty *vty, struct gsm_lchan *lchan)
lchan->nr, lchan->ts->nr, lchan->ts->trx->nr,
lchan->ts->trx->bts->nr, gsm_lchant_name(lchan->type),
VTY_NEWLINE);
- vty_out(vty, " Use Count: %u%s", lchan->use_count, VTY_NEWLINE);
+ vty_out(vty, " Use Count: %u, State: %s%s", lchan->use_count,
+ gsm_lchans_name(lchan->state), VTY_NEWLINE);
vty_out(vty, " BS Power: %u dBm, MS Power: %u dBm%s",
lchan->ts->trx->nominal_power - lchan->ts->trx->max_power_red
- lchan->bs_power*2,