diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-02-01 15:22:00 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-02-05 15:27:53 +0900 |
commit | c7366cf17f8de1da260dd713ef8785d9011dfb4c (patch) | |
tree | def89972d88b15fbcd3adbca15ebcb93a6fe9d35 | |
parent | eabc13c78109232f6d9b47dbbe692d9c82a09866 (diff) | |
download | systemd-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.c | 2 |
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); |