Minor audit of new top-level state machine

Also, give Jonas copyright for his contribution to Finit.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-06-07 18:32:31 +02:00
parent 79b95daf3a
commit 4a8a92af2e
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -1,6 +1,6 @@
/* Finit state machine
*
* Copyright (c) 2016 xxx
* Copyright (c) 2016 Jonas Johansson <jonas.johansson@westermo.se>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -50,16 +50,22 @@ static char *sm_status(sm_t *sm)
switch (sm->state) {
case SM_BOOTSTRAP_STATE:
return "bootstrap";
case SM_RUNNING_STATE:
return "running";
case SM_RUNLEVEL_CHANGE_STATE:
return "runlevel/change";
case SM_RUNLEVEL_WAIT_STATE:
return "runlevel/wait";
case SM_RELOAD_CHANGE_STATE:
return "reload/change";
case SM_RELOAD_WAIT_STATE:
return "reload/wait";
default:
return "unknown";
}
+1 -1
View File
@@ -1,6 +1,6 @@
/* Finit state machine
*
* Copyright (c) 2016 xxx
* Copyright (c) 2016 Jonas Johansson <jonas.johansson@westermo.se>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal