From: Yu Watanabe Date: Sat, 14 Nov 2020 00:06:35 +0000 (+0900) Subject: systemctl: fix minor coding style issue X-Git-Tag: v247~65^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17603%2Fhead;p=thirdparty%2Fsystemd.git systemctl: fix minor coding style issue --- diff --git a/src/systemctl/systemctl-list-units.c b/src/systemctl/systemctl-list-units.c index e6a530ed5b1..b747cb5a552 100644 --- a/src/systemctl/systemctl-list-units.c +++ b/src/systemctl/systemctl-list-units.c @@ -186,7 +186,8 @@ static int output_units_list(const UnitInfo *unit_infos, unsigned c) { "LOAD = Reflects whether the unit definition was properly loaded.\n" "ACTIVE = The high-level unit activation state, i.e. generalization of SUB.\n" "SUB = The low-level unit activation state, values depend on unit type."); - puts(job_count ? "JOB = Pending job for the unit.\n" : ""); + if (job_count > 0) + puts("JOB = Pending job for the unit.\n"); on = ansi_highlight(); off = ansi_normal(); } else {