diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2020-06-06 12:20:25 +0300 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2020-06-06 14:04:11 +0300 |
commit | dc5003e87122dfe36eb77e845bb905bbe7f28c40 (patch) | |
tree | 917636b7828cbb0b1bbefa5e279dd1e560f41ac7 | |
parent | 07873171e843a237f95d03c311c176460ab45134 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c index 4816dafb5..b33e53efc 100644 --- a/src/osmo-bsc/timeslot_fsm.c +++ b/src/osmo-bsc/timeslot_fsm.c @@ -62,6 +62,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 { |