aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-09-26 22:42:36 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-09-27 14:44:30 +0200
commit2bfe4a07ef418098aad38410c52321f0063bfc4f (patch)
tree709cadcc47359d4b209d2abbd9de9baa830a92a6
parent8a9f92bbea44e20baa0004b9b27314a87bbd3f98 (diff)
vty: tweak two printed strings
Fix typo "to long". Say 'cs7 instance' instead of 'ss7 instance': we are interacting with a user on the telnet VTY, and that user is configuring a 'cs7 instance'. Especially a lowercase 'ss7' is potentially confusing ("is there an 'ss7' node?"). Changes show in ss7_asp_test.vty. Change-Id: Iebb976531576268d58338895a4baadbca6137b80
-rw-r--r--src/osmo_ss7_vty.c4
-rw-r--r--tests/vty/ss7_asp_test.vty4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 295fc20..1e2f437 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -1289,7 +1289,7 @@ DEFUN(cs7_sccpaddr, cs7_sccpaddr_cmd,
const char *name = argv[0];
if (strlen(name) >= sizeof(entry->name)) {
- vty_out(vty, "Error: SCCP address name to long: '%s'%s",
+ vty_out(vty, "Error: SCCP address name too long: '%s'%s",
name, VTY_NEWLINE);
return CMD_ERR_INCOMPLETE;
}
@@ -1299,7 +1299,7 @@ DEFUN(cs7_sccpaddr, cs7_sccpaddr_cmd,
entry = addr_entry_by_name_global(name);
if (entry != NULL) {
vty_out(vty,
- "Error: SCCP address name already used in ss7 instance %u: '%s'%s",
+ "Error: SCCP address name already used in cs7 instance %u: '%s'%s",
entry->inst->cfg.id, entry->name, VTY_NEWLINE);
return CMD_ERR_INCOMPLETE;
}
diff --git a/tests/vty/ss7_asp_test.vty b/tests/vty/ss7_asp_test.vty
index 9a86b23..f96e0c0 100644
--- a/tests/vty/ss7_asp_test.vty
+++ b/tests/vty/ss7_asp_test.vty
@@ -180,13 +180,13 @@ ss7_asp_vty_test(config-cs7-sccpaddr)# do show cs7 instance 0 sccp addressbook
ss7_asp_vty_test(config-cs7-sccpaddr)# exit
ss7_asp_vty_test(config-cs7)# sccp-address foobarfoobarfoobarfoobarfoobarfoobar
-Error: SCCP address name to long: 'foobarfoobarfoobarfoobarfoobarfoobar'
+Error: SCCP address name too long: 'foobarfoobarfoobarfoobarfoobarfoobar'
% Command incomplete.
ss7_asp_vty_test(config-cs7)# exit
ss7_asp_vty_test(config)# cs7 instance 1
ss7_asp_vty_test(config-cs7)# sccp-address foo
-Error: SCCP address name already used in ss7 instance 0: 'foo'
+Error: SCCP address name already used in cs7 instance 0: 'foo'
% Command incomplete.
ss7_asp_vty_test(config-cs7)# sccp-address bar
ss7_asp_vty_test(config-cs7-sccpaddr)# point-code 1.2.3