From 2ce982f9b1a9f409b10fc4c0f3faa6b594b58df9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 18 Jul 2013 02:31:06 +0200 Subject: [PATCH 1/1] 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. --- src/systemctl/systemctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 9574ff20b..6fdbc417b 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 -- 2.30.2