Change in osmo-bsc[master]: LCLS: make config and control redable in 'sh conns'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Nov 19 05:43:31 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11815 )

Change subject: LCLS: make config and control redable in 'sh conns'
......................................................................

LCLS: make config and control redable in 'sh conns'

Display LCLS config and control state as text in "show conns" command.

Change-Id: Ibc2525d453e3aa845fe6f3a98f908c2b6b49f1f0
Related: OS#3659
---
M src/osmo-bsc/bsc_vty.c
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index f4f5838..3ac592c 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -1532,8 +1532,10 @@
 		vty_out(vty, " LCLS GCR: %s%s",
 			osmo_hexdump_nospc(conn->lcls.global_call_ref, conn->lcls.global_call_ref_len),
 			VTY_NEWLINE);
-		vty_out(vty, " LCLS Config: 0x%02x, LCLS Control: 0x%02x, LCLS BSS Status: %s%s",
-			conn->lcls.config, conn->lcls.control, osmo_fsm_inst_state_name(conn->lcls.fi),
+		vty_out(vty, " LCLS Config: %s, LCLS Control: %s, LCLS BSS Status: %s%s",
+			gsm0808_lcls_config_name(conn->lcls.config),
+			gsm0808_lcls_control_name(conn->lcls.control),
+			osmo_fsm_inst_state_name(conn->lcls.fi),
 			VTY_NEWLINE);
 	}
 	if (conn->lchan)

-- 
To view, visit https://gerrit.osmocom.org/11815
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibc2525d453e3aa845fe6f3a98f908c2b6b49f1f0
Gerrit-Change-Number: 11815
Gerrit-PatchSet: 2
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181119/c2b819aa/attachment.htm>


More information about the gerrit-log mailing list