Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fsm: add LOGPFSML to pass explicit logging level | Neels Hofmeyr | 2016-12-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Provide one central LOGPFSML to print FSM information, take the FSM logging subsystem from the FSM instance but use an explicitly provided log level instead of the FSM's default level. Use to replace some, essentially, duplications of the LOGPFSM macro. In effect, the fsm_test's expected error changes, since the previous code dup for logging events used round braces to indicate the fi's state, while the central macro uses curly braces. Change-Id: If295fdabb3f31a0fd9490d1e0df57794c75ae547 | ||||
* | Add logging and testing for FSM deallocation | Max | 2016-11-08 | 1 | -4/+5 |
| | | | | | | | | osmo_fsm_inst_alloc() logs allocation but osmo_fsm_inst_free() is silent. Fix this by adding log message for deallocation to make FSM lifecycle tracking easier. Also make sure it's covered by test suite. Change-Id: I7e5b55a1fff8e36cf61c7fb61d3e79c1f00e29d2 | ||||
* | Add osmo_fsm_unregister() to header | Max | 2016-11-02 | 1 | -0/+1 |
| | | | | | | | Previously function was defined but not exposed so there were a way to register FSM but no way to unregister it. Change-Id: I2e749d896009784b77d6d5952fcc38e1c131db2b | ||||
* | Add Finite State Machine abstraction code | Harald Welte | 2016-06-16 | 3 | -0/+166 |
This code is supposed to formalize some of the state machine handling in Osmocom code. Change-Id: I0b0965a912598c1f6b84042a99fea9d522642466 Reviewed-on: https://gerrit.osmocom.org/163 Tested-by: Jenkins Builder Reviewed-by: Harald Welte <laforge@gnumonks.org> |