diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-02-26 12:40:27 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-02-26 16:03:05 +0100 |
commit | 58616788ba67874eb83ee532497d200e076f88dd (patch) | |
tree | 983218a63c6fe93dfc164328d3e5389d499c65bb | |
parent | 617ac806c70f169c9c4c7ae1a973ea101bf30c10 (diff) |
a_reset: Add FSM event names
The FSM lacks a proper definition of the FSM event names. This causes
problems when inspecting the FSM using the VTY.
- Add proper FSM Event names
Change-Id: I76d7d9e0accffd433a3f3b5e5f8ab17ecd4a348c
Related: OS#2924
-rw-r--r-- | src/libcommon-cs/a_reset.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcommon-cs/a_reset.c b/src/libcommon-cs/a_reset.c index 25192c314..701066f34 100644 --- a/src/libcommon-cs/a_reset.c +++ b/src/libcommon-cs/a_reset.c @@ -43,6 +43,13 @@ enum fsm_evt { EV_N_CONNECT, /* made a successful connection */ }; +static const struct value_string fsm_event_names[] = { + OSMO_VALUE_STRING(EV_RESET_ACK), + OSMO_VALUE_STRING(EV_N_DISCONNECT), + OSMO_VALUE_STRING(EV_N_CONNECT), + {0, NULL} +}; + /* Disconnected state */ static void fsm_disc_cb(struct osmo_fsm_inst *fi, uint32_t event, void *data) { @@ -111,6 +118,7 @@ static struct osmo_fsm fsm = { .num_states = ARRAY_SIZE(fsm_states), .log_subsys = DMSC, .timer_cb = fsm_reset_ack_timeout_cb, + .event_names = fsm_event_names, }; /* Create and start state machine which handles the reset/reset-ack procedure */ |