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
2016-08-05 17:43:45 +02:00
parent 23cdd6e438
commit 7b07d5559c
+8 -3
View File
@@ -431,12 +431,16 @@ char *svc_status(svc_t *svc)
switch (svc->block) {
case SVC_BLOCK_NONE:
return "halted";
case SVC_BLOCK_MISSING:
return "missing";
case SVC_BLOCK_CRASHING:
return "crashing";
return "crashed";
case SVC_BLOCK_USER:
return "blocked";
case SVC_BLOCK_INETD_BUSY:
return "busy";
}
@@ -450,6 +454,7 @@ char *svc_status(svc_t *svc)
case SVC_TYPE_RUN:
case SVC_TYPE_TASK:
return "active";
default:
return "stopping";
}
@@ -472,9 +477,9 @@ const char *svc_dirtystr(svc_t *svc)
{
if (svc_is_removed(svc))
return "removed";
else if (svc_is_updated(svc))
if (svc_is_updated(svc))
return "updated";
else if (svc_is_changed(svc))
if (svc_is_changed(svc))
return "UNKNOWN";
return "clean";