diff options
author | Harald Welte <laforge@netfilter.org> | 2009-12-29 10:52:38 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-29 10:53:25 +0100 |
commit | 1887f9d153497adc37cec5b8db6b7423ff64d6c0 (patch) | |
tree | 43b4b9b971ba3dd6549dba33c5d845dbf9f59fd5 /openbsc/src/vty_interface.c | |
parent | 8e93b7908f09e5c356989677e21dd8b8e9cb4371 (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.c | 3 |
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, |