chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemctl: also highlight a load state of "not-found" as red
[elogind.git]
/
src
/
systemctl
/
systemctl.c
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index 9574ff20bdfcaf21e9c06b8c83cdb810d27ba0f6..6fdbc417b6e28776344d68edb30451531c32e889 100644
(file)
--- 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