neels has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/31759
)
Change subject: vty: codec-list: fix error message
......................................................................
vty: codec-list: fix error message
Change-Id: I89460229f894bfa67c6939dc3825f1865378d918
---
M src/osmo-bsc/bsc_vty.c
M tests/msc.vty
2 files changed, 11 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/59/31759/1
diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index c219ff4..0edb534 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -2752,7 +2752,7 @@
/* prevent duplicate entries */
for (j = 0; j < i; j++) {
if (gsm_audio_support_cmp(&tmp[j], &tmp[i]) == 0) {
- vty_out(vty, "duplicate entry in 'msc' / 'codec-support':
%s%s", argv[i], VTY_NEWLINE);
+ vty_out(vty, "duplicate entry in 'msc' / 'codec-list':
%s%s", arg, VTY_NEWLINE);
return CMD_WARNING;
}
}
diff --git a/tests/msc.vty b/tests/msc.vty
index 74eca2a..d67f2b9 100644
--- a/tests/msc.vty
+++ b/tests/msc.vty
@@ -53,7 +53,7 @@
...
OsmoBSC(config-msc)# codec-list fr1 fr1
-duplicate entry in 'msc' / 'codec-support': fr1
+duplicate entry in 'msc' / 'codec-list': fr1
OsmoBSC(config-msc)# show running-config
...
msc 0
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/31759
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I89460229f894bfa67c6939dc3825f1865378d918
Gerrit-Change-Number: 31759
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: newchange