diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-07 10:14:30 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-07 10:14:33 +0900 |
commit | 4ae25393f37b96b2b753562a349d68947ab1ad3d (patch) | |
tree | 3ca5d2f931b2ab4760f70a218b5eb704f8a1445a /src/sulogin-shell | |
parent | 906119c04632224c7c0d46671eb3f1dd303cacbf (diff) | |
download | systemd-4ae25393f37b96b2b753562a349d68947ab1ad3d.tar.gz |
tree-wide: shorten error logging a bit
Continuation of 4027f96aa08c73f109aa46b89842ca0e25c9c0e9.
Diffstat (limited to 'src/sulogin-shell')
-rw-r--r-- | src/sulogin-shell/sulogin-shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sulogin-shell/sulogin-shell.c b/src/sulogin-shell/sulogin-shell.c index d0e5a89f1f..5db3592d6f 100644 --- a/src/sulogin-shell/sulogin-shell.c +++ b/src/sulogin-shell/sulogin-shell.c @@ -59,9 +59,9 @@ static int start_default_target(sd_bus *bus) { "ss", "default.target", "isolate"); if (r < 0) - log_error("Failed to start default target: %s", bus_error_message(&error, r)); + return log_error_errno(r, "Failed to start default target: %s", bus_error_message(&error, r)); - return r; + return 0; } static int fork_wait(const char* const cmdline[]) { |