aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-08-17 13:16:10 +0200
committerHarald Welte <laforge@gnumonks.org>2012-08-17 13:16:10 +0200
commit570ce24debddbba8efca8567b70a805f80d18ecc (patch)
tree8d5bc6573fbdbf00fc0c883743ccbfde9d805e7d /openbsc/src/osmo-bsc
parente555c2b5453a9aea6fa03db4033eac1cee8d8ce4 (diff)
VTY: improve VTY prompt and make sure exit/end works everywhere
Some nodes below 'config' didn't have ournode_exit / ournode_end, and thus were not able to properly perform this function. exit should always only go back one level, while end drops us back to ENABLE_NODE. The prompt now represents the nesting level, and there's one consistent space after the final prompt character (typically #).
Diffstat (limited to 'openbsc/src/osmo-bsc')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_vty.c b/openbsc/src/osmo-bsc/osmo_bsc_vty.c
index 276a490ba..26f92292a 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_vty.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_vty.c
@@ -41,7 +41,7 @@ static struct osmo_msc_data *osmo_msc_data(struct vty *vty)
static struct cmd_node msc_node = {
MSC_NODE,
- "%s(msc)#",
+ "%s(config-msc)# ",
1,
};