From 301b21850922a03cf7fbb7a3adfba4d8b95d6332 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 5 Jun 2020 03:03:53 +0700 Subject: vty: fix bts_dump_vty(): properly print OML stream ID (TEI) Change-Id: I80ceba60e4b48d5bc68de71a2b2a2036b1e78f57 --- src/common/vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common/vty.c') diff --git a/src/common/vty.c b/src/common/vty.c index a57f3b59..1d74b367 100644 --- a/src/common/vty.c +++ b/src/common/vty.c @@ -856,7 +856,8 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts) bts->description ? bts->description : "(null)", VTY_NEWLINE); vty_out(vty, " Unit ID: %u/%u/0, OML Stream ID 0x%02x%s", bts->ip_access.site_id, bts->ip_access.bts_id, - bts->oml_tei, VTY_NEWLINE); + bts->oml_link ? bts->oml_link->tei : 0x00, + VTY_NEWLINE); vty_out(vty, " NM State: "); net_dump_nmstate(vty, &bts->mo.nm_state); vty_out(vty, " Site Mgr NM State: "); -- cgit v1.2.3