Improve service state machine debug messages

In addition to logging state transitions, also log the parameters that
might trigger a transition.
This commit is contained in:
Tobias Waldekranz committed 2016-01-13 15:09:04 +01:00
1 parent 02eb68f46c
commit 171d611b14
3 files changed
+17 -8

No files matched your search

+12
View File
@@ -434,6 +434,18 @@ char *svc_status(svc_t *svc)
}
}
const char *svc_dirtystr(svc_t *svc)
{
if (svc_is_removed(svc))
return "removed";
else if (svc_is_updated(svc))
return "updated";
else if (svc_is_changed(svc))
return "UNKNOWN";
else
return "clean";
}
/* Same base service, return unique ID */
int svc_next_id(char *cmd)
{