aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2020-06-06 12:20:25 +0300
committerlaforge <laforge@osmocom.org>2020-08-12 18:38:18 +0000
commitabf03a1d64a81f779d3150fa0bbbd0b15fdd6d81 (patch)
tree0b846f9081aeca52c991e34eecf52491ae85976a
parent29993a913895ce966f3935b89bfc35455b3d37bd (diff)
timeslot_fsm: Name TS FSM instances on allocation.
Before this patch FSM instances of configured but not connected BTS's look like this: FSM Instance Name: 'timeslot[0x612000004a20]', ID: '(null)' Log-Level: 'DEBUG', State: 'NOT_INITIALIZED' Now they look like this: FSM Instance Name: 'timeslot(0-0-7-NONE)[0x612000004a20]', ID: '0-0-7-NONE' Log-Level: 'DEBUG', State: 'NOT_INITIALIZED' which makes it possible to attribute them to where they belong. Otherwise, they look like lingering or leaking unattributed FSM instances. Change-Id: Idc74ea142b96323b48826f8a52e13e45d535512a
-rw-r--r--src/osmo-bsc/timeslot_fsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c
index 0aecfaeb2..106e6a1fa 100644
--- a/src/osmo-bsc/timeslot_fsm.c
+++ b/src/osmo-bsc/timeslot_fsm.c
@@ -63,6 +63,7 @@ void ts_fsm_alloc(struct gsm_bts_trx_ts *ts)
OSMO_ASSERT(ts->trx);
ts->fi = osmo_fsm_inst_alloc(&ts_fsm, ts->trx, ts, LOGL_DEBUG, NULL);
OSMO_ASSERT(ts->fi);
+ ts_fsm_update_id(ts);
}
enum lchan_sanity {