summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-02-01 15:22:00 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-02-05 15:27:53 +0900
commitc7366cf17f8de1da260dd713ef8785d9011dfb4c (patch)
treedef89972d88b15fbcd3adbca15ebcb93a6fe9d35
parenteabc13c78109232f6d9b47dbbe692d9c82a09866 (diff)
downloadsystemd-c7366cf17f8de1da260dd713ef8785d9011dfb4c.tar.gz
systemctl: update 'show' format for path units
Before this. ``` $ systemctl show cups.path | grep ^Path PathExistsGlob=/var/spool/cups/d* $ systemctl show --property PathExistsGlob cups.path $ systemctl show --property Paths cups.path PathExistsGlob=/var/spool/cups/d* ``` After this. ``` $ systemctl show cups.path | grep ^Path Paths=/var/spool/cups/d* (PathExistsGlob) $ systemctl show --property Paths cups.path Paths=/var/spool/cups/d* (PathExistsGlob) ```
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index dea7d3a859..a9bcc490dd 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -4889,7 +4889,7 @@ static int print_property(const char *name, sd_bus_message *m, const char *conte
return bus_log_parse_error(r);
while ((r = sd_bus_message_read(m, "(ss)", &type, &path)) > 0)
- print_prop(type, "%s", path);
+ print_prop(name, "%s (%s)", path, type);
if (r < 0)
return bus_log_parse_error(r);