projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c6b69
)
systemctl: show nothing if no LoadError=
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 2 Mar 2019 16:59:58 +0000
(
01:59
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 4 Mar 2019 14:45:07 +0000
(23:45 +0900)
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index
1629307
..
44451c0
100644
(file)
--- 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")) {