Service status 'crashing' --> 'crashed'

Minor coding style cleanup, code simplification, and change service
'crashing' status text to 'crashed' to fit column width.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-08-05 17:43:45 +02:00
1 parent 23cdd6e438
commit 7b07d5559c
1 file changed
+8 -3
+8 -3
View File
@@ -431,12 +431,16 @@ char *svc_status(svc_t *svc)
switch (svc->block) { switch (svc->block) {
case SVC_BLOCK_NONE: case SVC_BLOCK_NONE:
return "halted"; return "halted";
case SVC_BLOCK_MISSING: case SVC_BLOCK_MISSING:
return "missing"; return "missing";
case SVC_BLOCK_CRASHING: case SVC_BLOCK_CRASHING:
return "crashing"; return "crashed";
case SVC_BLOCK_USER: case SVC_BLOCK_USER:
return "blocked"; return "blocked";
case SVC_BLOCK_INETD_BUSY: case SVC_BLOCK_INETD_BUSY:
return "busy"; return "busy";
} }
@@ -450,6 +454,7 @@ char *svc_status(svc_t *svc)
case SVC_TYPE_RUN: case SVC_TYPE_RUN:
case SVC_TYPE_TASK: case SVC_TYPE_TASK:
return "active"; return "active";
default: default:
return "stopping"; return "stopping";
} }
@@ -472,9 +477,9 @@ const char *svc_dirtystr(svc_t *svc)
{ {
if (svc_is_removed(svc)) if (svc_is_removed(svc))
return "removed"; return "removed";
else if (svc_is_updated(svc)) if (svc_is_updated(svc))
return "updated"; return "updated";
else if (svc_is_changed(svc)) if (svc_is_changed(svc))
return "UNKNOWN"; return "UNKNOWN";
return "clean"; return "clean";