diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-07-18 02:31:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-07-18 02:32:34 +0200 |
commit | 2ce982f9b1a9f409b10fc4c0f3faa6b594b58df9 (patch) | |
tree | 6b157ad95d7b1cc6f9588720a2cf69f4d1c14838 | |
parent | 20422497109aaba1d214f1597530de8b8788a526 (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.
-rw-r--r-- | src/systemctl/systemctl.c | 3 |
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 |