aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/vty.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-05 03:03:53 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-05 18:38:38 +0700
commit301b21850922a03cf7fbb7a3adfba4d8b95d6332 (patch)
tree8e8b035316fef98046e70d1e4ad8a10a1e0a9dd4 /src/common/vty.c
parent759a12e8aabdb813c39bcd07a69e4f7856367e84 (diff)
vty: fix bts_dump_vty(): properly print OML stream ID (TEI)
Diffstat (limited to 'src/common/vty.c')
-rw-r--r--src/common/vty.c3
1 files changed, 2 insertions, 1 deletions
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: ");