diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-03-15 16:57:33 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-06-24 10:59:33 +0200 |
commit | 1304b35a640fbe2308dd7af28dcad04cc052a0ef (patch) | |
tree | 4beaed316f8a312458bc8cf88a07fd6428ce4820 /openbsc | |
parent | abadd543466a551cd1609aa452ceccf9815fecd6 (diff) |
bsc_vty: Print human-readable string version of NM ADM STATE
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/libbsc/bsc_vty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c index 9e2c721a9..b98ef1544 100644 --- a/openbsc/src/libbsc/bsc_vty.c +++ b/openbsc/src/libbsc/bsc_vty.c @@ -148,8 +148,9 @@ static int dummy_config_write(struct vty *v) static void net_dump_nmstate(struct vty *vty, struct gsm_nm_state *nms) { - vty_out(vty,"Oper '%s', Admin %u, Avail '%s'%s", - abis_nm_opstate_name(nms->operational), nms->administrative, + vty_out(vty,"Oper '%s', Admin '%s', Avail '%s'%s", + abis_nm_opstate_name(nms->operational), + get_value_string(abis_nm_adm_state_names, nms->administrative), abis_nm_avail_name(nms->availability), VTY_NEWLINE); } |