aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Nilsson <troglobit@gmail.com>2017-10-12 01:27:21 +0200
committerJoachim Nilsson <troglobit@gmail.com>2017-10-12 01:28:38 +0200
commit8dc263d508504a6abfbb6b91600b9dc95606f338 (patch)
treee69cb542819dcf27c65432fc73fdd00345755c6c
parentafb3fada50ef493d61f80b781ee4c8ec837e20c5 (diff)
downloadfinit-8dc263d508504a6abfbb6b91600b9dc95606f338.zip
finit-8dc263d508504a6abfbb6b91600b9dc95606f338.tar.gz
finit-8dc263d508504a6abfbb6b91600b9dc95606f338.tar.bz2
Revert live logging of state machine
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
-rw-r--r--src/sm.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/sm.c b/src/sm.c
index 7ccc25f..2cabb8a 100644
--- a/src/sm.c
+++ b/src/sm.c
@@ -95,7 +95,7 @@ void sm_step(sm_t *sm)
restart:
old_state = sm->state;
- _e("state: %s", sm_status(sm->state));
+ _d("state: %s", sm_status(sm->state));
switch (sm->state) {
case SM_BOOTSTRAP_STATE:
@@ -158,7 +158,7 @@ restart:
*/
svc = svc_stop_completed();
if (svc) {
- _e("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
+ _d("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
break;
}
@@ -216,7 +216,7 @@ restart:
*/
svc = svc_stop_completed();
if (svc) {
- _e("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
+ _d("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
break;
}
@@ -240,11 +240,8 @@ restart:
break;
}
- if (sm->state != old_state) {
- _e("state: %s --> %s, another step ...", sm_status(old_state), sm_status(sm->state));
+ if (sm->state != old_state)
goto restart;
- }
- _e("stepped --> %s", sm_status(sm->state));
}
/**