Change in osmo-bsc[master]: debug log: indicate change of primary lchan on a conn

neels gerrit-no-reply at lists.osmocom.org
Fri Jul 23 21:58:56 UTC 2021


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/25038 )


Change subject: debug log: indicate change of primary lchan on a conn
......................................................................

debug log: indicate change of primary lchan on a conn

Change-Id: Ib4e9a1cde9248f5d3fd8d7d8277623b42670b059
---
M src/osmo-bsc/bsc_subscr_conn_fsm.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/38/25038/1

diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c
index c4a7875..671f065 100644
--- a/src/osmo-bsc/bsc_subscr_conn_fsm.c
+++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c
@@ -702,6 +702,14 @@
 	if (old_lchan == new_lchan)
 		return;
 
+	if (!old_lchan && new_lchan)
+		LOGPFSML(conn->fi, LOGL_DEBUG, "setting primary lchan for this conn to %s\n",
+			 new_lchan->fi? osmo_fsm_inst_name(new_lchan->fi) : gsm_lchan_name(new_lchan));
+	else if (old_lchan && new_lchan)
+		LOGPFSML(conn->fi, LOGL_DEBUG, "primary lchan for this conn changes from %s to %s\n",
+			 old_lchan->fi? osmo_fsm_inst_name(old_lchan->fi) : gsm_lchan_name(old_lchan),
+			 new_lchan->fi? osmo_fsm_inst_name(new_lchan->fi) : gsm_lchan_name(new_lchan));
+
 	conn->lchan = new_lchan;
 	conn->lchan->conn = conn;
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/25038
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ib4e9a1cde9248f5d3fd8d7d8277623b42670b059
Gerrit-Change-Number: 25038
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210723/ac169a6a/attachment.htm>


More information about the gerrit-log mailing list