From 2bfe4a07ef418098aad38410c52321f0063bfc4f Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 26 Sep 2018 22:42:36 +0200 Subject: 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 --- src/osmo_ss7_vty.c | 4 ++-- tests/vty/ss7_asp_test.vty | 4 ++-- 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 -- cgit v1.2.3