aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-04-19 19:47:55 +0200
committerHarald Welte <laforge@gnumonks.org>2012-04-19 19:47:55 +0200
commitff9e90492692228fad5cbd5044f4752dc7bec8b9 (patch)
treeda8a89d62f212cf8080f0b5da29df336b61c588b /src
parentf19ee660963ba34a2ecad5f6fb5c44e89c9fb820 (diff)
fix VTY help strings related to TRX
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-sysmo/sysmobts_vty.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/osmo-bts-sysmo/sysmobts_vty.c b/src/osmo-bts-sysmo/sysmobts_vty.c
index 85381939..927d2c92 100644
--- a/src/osmo-bts-sysmo/sysmobts_vty.c
+++ b/src/osmo-bts-sysmo/sysmobts_vty.c
@@ -44,10 +44,11 @@
#include "femtobts.h"
#include "l1_if.h"
+#define TRX_STR "Transceiver related commands\n" "TRX number\n"
+
#define SHOW_TRX_STR \
SHOW_STR \
- "Show TRX specific information\n" \
- "TRX number\n"
+ TRX_STR
static struct gsm_bts *vty_bts;
@@ -230,7 +231,7 @@ DEFUN(show_dsp_trace_f, show_dsp_trace_f_cmd,
}
-DEFUN(dsp_trace_f, dsp_trace_f_cmd, "HIDDEN", "HIDDEN")
+DEFUN(dsp_trace_f, dsp_trace_f_cmd, "HIDDEN", TRX_STR)
{
int trx_nr = atoi(argv[0]);
struct gsm_bts_trx *trx = gsm_bts_trx_num(vty_bts, trx_nr);
@@ -250,7 +251,7 @@ DEFUN(dsp_trace_f, dsp_trace_f_cmd, "HIDDEN", "HIDDEN")
return CMD_SUCCESS;
}
-DEFUN(no_dsp_trace_f, no_dsp_trace_f_cmd, "HIDDEN", "HIDDEN")
+DEFUN(no_dsp_trace_f, no_dsp_trace_f_cmd, "HIDDEN", NO_STR TRX_STR)
{
int trx_nr = atoi(argv[0]);
struct gsm_bts_trx *trx = gsm_bts_trx_num(vty_bts, trx_nr);
@@ -306,10 +307,10 @@ DEFUN(show_sys_info, show_sys_info_cmd,
DEFUN(activate_lchan, activate_lchan_cmd,
"trx <0-0> <0-7> (activate|deactivate) <0-7>",
- "Transceiver related commands\n"
- "TRX number\n"
+ TRX_STR
"Timeslot number\n"
- "Activate or Deactivate\n"
+ "Activate Logical Channel\n"
+ "Deactivate Logical Channel\n"
"Logical Channel Number\n" )
{
int trx_nr = atoi(argv[0]);