aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/bsc_vty.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-01-19 15:41:24 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-01-19 15:41:25 +0100
commite5b5a894c2618f9150ab4902c43813cb67ba7403 (patch)
treefadcf5f39cf8a227e75674cfce9f885044fd1d6b /src/libbsc/bsc_vty.c
parente74038424a6697f0fea897a17db4e956f4856b57 (diff)
vty: fix 'show lchan ...' arg [lchan_nr] to [<0-7>]
A lower-case argument is a keyword, not a variable placeholder. Hence the user would not be able to pass a number, just the "lchan_nr" string itself, hence this would never work. Depending on pchan, lchans can range 0..7, so use that instead. Change-Id: Ib9a0b43b68c4682cd6de24d01c0de421c9ce957a
Diffstat (limited to 'src/libbsc/bsc_vty.c')
-rw-r--r--src/libbsc/bsc_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index e60bdaf1b..dcdd28a2d 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -1297,7 +1297,7 @@ static int lchan_summary(struct vty *vty, int argc, const char **argv,
DEFUN(show_lchan,
show_lchan_cmd,
- "show lchan [<0-255>] [<0-255>] [<0-7>] [lchan_nr]",
+ "show lchan [<0-255>] [<0-255>] [<0-7>] [<0-7>]",
SHOW_STR "Display information about a logical channel\n"
"BTS Number\n" "TRX Number\n" "Timeslot Number\n"
LCHAN_NR_STR)
@@ -1308,7 +1308,7 @@ DEFUN(show_lchan,
DEFUN(show_lchan_summary,
show_lchan_summary_cmd,
- "show lchan summary [<0-255>] [<0-255>] [<0-7>] [lchan_nr]",
+ "show lchan summary [<0-255>] [<0-255>] [<0-7>] [<0-7>]",
SHOW_STR "Display information about a logical channel\n"
"Short summary\n"
"BTS Number\n" "TRX Number\n" "Timeslot Number\n"