summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-18 02:31:06 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-18 02:32:34 +0200
commit2ce982f9b1a9f409b10fc4c0f3faa6b594b58df9 (patch)
tree6b157ad95d7b1cc6f9588720a2cf69f4d1c14838 /src/systemctl/systemctl.c
parent20422497109aaba1d214f1597530de8b8788a526 (diff)
systemctl: also highlight a load state of "not-found" as red
"not-found" is a recently added load state and was previously just a special case of "error". Since it also indicates a load error we should also highlight it red, the same way as "error" was treated before.
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 9574ff20bd..6fdbc417b6 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -381,7 +381,8 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) {
n_shown++;
- if (streq(u->load_state, "error")) {
+ if (streq(u->load_state, "error") ||
+ streq(u->load_state, "not-found")) {
on_loaded = on = ansi_highlight_red(true);
off_loaded = off = ansi_highlight_red(false);
} else