aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-07 16:50:42 +0100
committerMax <msuraev@sysmocom.de>2018-01-08 13:02:37 +0000
commitff3fad1aa8beda19cc66d6f376ddcbca52e7cc6b (patch)
tree52c5a9f97c42046d45ec46a7453101eed76e1476
parent94059b00a5db345184e7d1361a7d6de3ecf9a371 (diff)
vty: fix OML link state printing
Always print newline regardless of BTS uptime availability. Change-Id: Ib80049fe66de17bc7acfbb774a30075f40a44dee
-rw-r--r--src/libbsc/bsc_vty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index 8281606be..e60bdaf1b 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -298,9 +298,9 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts)
vty_out(vty, " OML Link state: %s", get_model_oml_status(bts));
sec = bts_uptime(bts);
if (sec)
- vty_out(vty, " %llu days %llu hours %llu min. %llu sec.%s",
- OSMO_SEC2DAY(sec), OSMO_SEC2HRS(sec), OSMO_SEC2MIN(sec), sec % 60,
- VTY_NEWLINE);
+ vty_out(vty, " %llu days %llu hours %llu min. %llu sec.",
+ OSMO_SEC2DAY(sec), OSMO_SEC2HRS(sec), OSMO_SEC2MIN(sec), sec % 60);
+ vty_out(vty, "%s", VTY_NEWLINE);
} else {
vty_out(vty, " E1 Signalling Link:%s", VTY_NEWLINE);
e1isl_dump_vty(vty, bts->oml_link);