From: Yu Watanabe Date: Sat, 2 Mar 2019 16:59:58 +0000 (+0900) Subject: systemctl: show nothing if no LoadError= X-Git-Tag: v242-rc1~203^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48d3358db14205741cc94ce8fc3f36cac3359811;p=thirdparty%2Fsystemd.git systemctl: show nothing if no LoadError= --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 1629307f84b..44451c01d6e 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4722,8 +4722,10 @@ static int print_property(const char *name, const char *expected_value, sd_bus_m if (r < 0) return bus_log_parse_error(r); - if (all || !isempty(a) || !isempty(b)) + if (!isempty(a) || !isempty(b)) bus_print_property_valuef(name, expected_value, value, "%s \"%s\"", strempty(a), strempty(b)); + else if (all) + bus_print_property_value(name, expected_value, value, ""); return 1; } else if (streq(name, "SystemCallFilter")) {