diff options
author | fangxiuning <fangxiuning123@126.com> | 2020-07-20 13:20:52 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-21 03:02:01 +0200 |
commit | ddbab78f9af92e63ce12afddc2dba0e5f59b9f9d (patch) | |
tree | 3fef6cfa327b8d2eb5624cf60df481e58ee721ba /src/machine/machinectl.c | |
parent | Merge pull request #16518 from yuwata/network-fix-failure-in-updating-mac-add... (diff) | |
download | systemd-ddbab78f9af92e63ce12afddc2dba0e5f59b9f9d.tar.xz systemd-ddbab78f9af92e63ce12afddc2dba0e5f59b9f9d.zip |
bus: use bus_log_connect_error to print error message
Diffstat (limited to 'src/machine/machinectl.c')
-rw-r--r-- | src/machine/machinectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 26fa48d870..841eeae882 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -2897,7 +2897,7 @@ static int run(int argc, char *argv[]) { r = bus_connect_transport(arg_transport, arg_host, false, &bus); if (r < 0) - return log_error_errno(r, "Failed to create bus connection: %m"); + return bus_log_connect_error(r); (void) sd_bus_set_allow_interactive_authorization(bus, arg_ask_password); |