[systemd-devel] [PATCH] machinectl: show_properties() already logs the error
Djalal Harouni
tixxdz at opendz.org
Tue Dec 17 14:40:15 PST 2013
---
src/machine/machinectl.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
index fd21a0a..a2af87c 100644
--- a/src/machine/machinectl.c
+++ b/src/machine/machinectl.c
@@ -304,10 +304,8 @@ static int show(sd_bus *bus, char **args, unsigned n) {
/* If no argument is specified, inspect the manager
* itself */
r = show_properties(bus, "/org/freedesktop/machine1", &new_line);
- if (r < 0) {
- log_error("Failed to query properties: %s", strerror(-r));
+ if (r < 0)
return r;
- }
}
for (i = 1; i < n; i++) {
--
1.8.3.1
More information about the systemd-devel
mailing list