diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-01-27 14:20:29 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-01-28 11:45:51 +0100 |
commit | 9c4f1d6fd020f5f56c10d41c87348d24172f2dd4 (patch) | |
tree | 79419515d76150be3fec1d4dc4adc58e791b5298 /openbsc/src/libbsc/bsc_vty.c | |
parent | 1bf8617610bcba262dc6275efa38541b56494ad4 (diff) |
fix bsc_vty out: timeslot indented too deeply.
In 'show running-config', timeslot appears as a sub-element of rsl, but it is a
direct child of trx. Fix the timeslot section in vty_out by removing one space
of idention.
Adjust various config examples.
Rationale: it's not relevant for function, but confuses human operators. Fixing
it will save the next hacker some time.
Diffstat (limited to 'openbsc/src/libbsc/bsc_vty.c')
-rw-r--r-- | openbsc/src/libbsc/bsc_vty.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c index d3aa3a6b1..4fbf33716 100644 --- a/openbsc/src/libbsc/bsc_vty.c +++ b/openbsc/src/libbsc/bsc_vty.c @@ -374,28 +374,28 @@ static void config_write_e1_link(struct vty *vty, struct gsm_e1_subslot *e1_link static void config_write_ts_single(struct vty *vty, struct gsm_bts_trx_ts *ts) { - vty_out(vty, " timeslot %u%s", ts->nr, VTY_NEWLINE); + vty_out(vty, " timeslot %u%s", ts->nr, VTY_NEWLINE); if (ts->tsc != -1) - vty_out(vty, " training_sequence_code %u%s", ts->tsc, VTY_NEWLINE); + vty_out(vty, " training_sequence_code %u%s", ts->tsc, VTY_NEWLINE); if (ts->pchan != GSM_PCHAN_NONE) - vty_out(vty, " phys_chan_config %s%s", + vty_out(vty, " phys_chan_config %s%s", gsm_pchan_name(ts->pchan), VTY_NEWLINE); - vty_out(vty, " hopping enabled %u%s", + vty_out(vty, " hopping enabled %u%s", ts->hopping.enabled, VTY_NEWLINE); if (ts->hopping.enabled) { unsigned int i; - vty_out(vty, " hopping sequence-number %u%s", + vty_out(vty, " hopping sequence-number %u%s", ts->hopping.hsn, VTY_NEWLINE); - vty_out(vty, " hopping maio %u%s", + vty_out(vty, " hopping maio %u%s", ts->hopping.maio, VTY_NEWLINE); for (i = 0; i < ts->hopping.arfcns.data_len*8; i++) { if (!bitvec_get_bit_pos(&ts->hopping.arfcns, i)) continue; - vty_out(vty, " hopping arfcn add %u%s", + vty_out(vty, " hopping arfcn add %u%s", i, VTY_NEWLINE); } } - config_write_e1_link(vty, &ts->e1_link, " "); + config_write_e1_link(vty, &ts->e1_link, " "); if (ts->trx->bts->model->config_write_ts) ts->trx->bts->model->config_write_ts(vty, ts); |