summaryrefslogtreecommitdiffstats
path: root/src/mount
diff options
context:
space:
mode:
authorfangxiuning <fangxiuning123@126.com>2020-07-20 13:20:52 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-07-21 03:02:01 +0200
commitddbab78f9af92e63ce12afddc2dba0e5f59b9f9d (patch)
tree3fef6cfa327b8d2eb5624cf60df481e58ee721ba /src/mount
parentMerge pull request #16518 from yuwata/network-fix-failure-in-updating-mac-add... (diff)
downloadsystemd-ddbab78f9af92e63ce12afddc2dba0e5f59b9f9d.tar.xz
systemd-ddbab78f9af92e63ce12afddc2dba0e5f59b9f9d.zip
bus: use bus_log_connect_error to print error message
Diffstat (limited to 'src/mount')
-rw-r--r--src/mount/mount-tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index f5873d1c06..22da189684 100644
--- a/src/mount/mount-tool.c
+++ b/src/mount/mount-tool.c
@@ -1456,7 +1456,7 @@ static int run(int argc, char* argv[]) {
r = bus_connect_transport_systemd(arg_transport, arg_host, arg_user, &bus);
if (r < 0)
- return log_error_errno(r, "Failed to create bus connection: %m");
+ return bus_log_connect_error(r);
if (arg_action == ACTION_UMOUNT)
return action_umount(bus, argc, argv);