mirror of
https://github.com/troglobit/finit.git
synced 2026-11-09 16:21:24 +00:00
Revert live logging of state machine
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
afb3fada50
commit
8dc263d508
1 file changed
+4
-7
@@ -95,7 +95,7 @@ void sm_step(sm_t *sm)
|
|||||||
restart:
|
restart:
|
||||||
old_state = sm->state;
|
old_state = sm->state;
|
||||||
|
|
||||||
_e("state: %s", sm_status(sm->state));
|
_d("state: %s", sm_status(sm->state));
|
||||||
|
|
||||||
switch (sm->state) {
|
switch (sm->state) {
|
||||||
case SM_BOOTSTRAP_STATE:
|
case SM_BOOTSTRAP_STATE:
|
||||||
@@ -158,7 +158,7 @@ restart:
|
|||||||
*/
|
*/
|
||||||
svc = svc_stop_completed();
|
svc = svc_stop_completed();
|
||||||
if (svc) {
|
if (svc) {
|
||||||
_e("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
|
_d("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -216,7 +216,7 @@ restart:
|
|||||||
*/
|
*/
|
||||||
svc = svc_stop_completed();
|
svc = svc_stop_completed();
|
||||||
if (svc) {
|
if (svc) {
|
||||||
_e("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
|
_d("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,11 +240,8 @@ restart:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sm->state != old_state) {
|
if (sm->state != old_state)
|
||||||
_e("state: %s --> %s, another step ...", sm_status(old_state), sm_status(sm->state));
|
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
|
||||||
_e("stepped --> %s", sm_status(sm->state));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user