aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-07-19 19:07:06 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2021-07-24 00:02:00 +0200
commitb0d854556dafe885d740346b1b34ab247cb09d56 (patch)
treefc6c2d8382e1916c931b657fa05bd50db5bd3e66
parent9bff117e4aac06fb98173924addae1735fdf0416 (diff)
debug log: indicate change of primary lchan on a conn
-rw-r--r--src/osmo-bsc/bsc_subscr_conn_fsm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c
index c4a787567..671f065df 100644
--- a/src/osmo-bsc/bsc_subscr_conn_fsm.c
+++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c
@@ -702,6 +702,14 @@ void gscon_change_primary_lchan(struct gsm_subscriber_connection *conn, struct g
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;