]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: Use "unmet" for condition checks, not "failed"
authorColin Walters <walters@verbum.org>
Wed, 31 Aug 2022 20:39:03 +0000 (16:39 -0400)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 1 Sep 2022 06:03:40 +0000 (15:03 +0900)
commit413e8650b71d4404a7453403797f93d73d88c466
treeeb65f6ddda014e3a81fb74869f9ffa24fe182a71
parent133ac84e60a9cd29cf0c682d6c05d88a56511b8d
tree-wide: Use "unmet" for condition checks, not "failed"

Often I end up debugging a problem on a system, and I
do e.g. `journalctl --grep=failed|error`.  The use of the term
"failed" for condition checks adds a *lot* of unnecessary noise into
this.

Now, I know this regexp search isn't precise, but it has proven
to be useful to me.

I think "failed" is too strong of a term as a baseline, and also
just stands out to e.g. humans watching their servers boot or
whatever.

The term "met condition" is fairly widely used, e.g.
https://stackoverflow.com/questions/63751794/what-does-the-condition-is-met-exactly-mean-in-programming-languages

Use that instead.
man/systemd.unit.xml
src/core/job.c
src/core/job.h
src/core/path.c
src/core/unit.c