From dbbeb1ec3b0b783a1a67be25407696de5ef24211 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Fri, 3 Apr 2020 22:27:27 +0100 Subject: [PATCH] fix log order --- lib/include/srslte/common/fsm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srslte/common/fsm.h b/lib/include/srslte/common/fsm.h index 403657db0..abb734c05 100644 --- a/lib/include/srslte/common/fsm.h +++ b/lib/include/srslte/common/fsm.h @@ -142,11 +142,11 @@ struct fsm_helper { static_assert(not std::is_same::value, "State cannot transition to itself.\n"); f->exit(srslte::get(f->states)); f->states.transit(std::move(*s)); - call_enter(f, &srslte::get(f->states)); f->log_h->info("FSM \"%s\": Detected transition \"%s\" -> \"%s\"", get_type_name().c_str(), get_type_name().c_str(), get_type_name().c_str()); + call_enter(f, &srslte::get(f->states)); } //! State not present in current FSM. Attempt state transition in parent FSM in the case of NestedFSM template