summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-14 17:37:34 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-14 17:56:48 +0100
commit6a13e7f563e3983c51363704bd2a65e691bafc3e (patch)
treeaffabf708ebd69f96c92265778c75adf11df3281 /tests
parent886d6fdec605e47ec19a3e37dd9596c525178a54 (diff)
fsm: add LOGPFSML to pass explicit logging level
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
Diffstat (limited to 'tests')
-rw-r--r--tests/fsm/fsm_test.err2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fsm/fsm_test.err b/tests/fsm/fsm_test.err
index b9c738c6..c9021bbd 100644
--- a/tests/fsm/fsm_test.err
+++ b/tests/fsm/fsm_test.err
@@ -1,7 +1,7 @@
Checking FSM allocation
Test FSM{NULL}: Allocated
Test FSM{NULL}: Received Event 1
-Test FSM(NULL): Event 1 not permitted
+Test FSM{NULL}: Event 1 not permitted
Test FSM{NULL}: Received Event 0
Test FSM{NULL}: state_chg to ONE
Test FSM{ONE}: Received Event 1