From: Yu Watanabe Date: Thu, 16 Nov 2017 06:55:42 +0000 (+0900) Subject: mount: show which argument is invalid X-Git-Tag: v236~195^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de345d3464a718b9d620ed68129f0c097957925a;p=thirdparty%2Fsystemd.git mount: show which argument is invalid --- diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 3a659654c25..7bd40613c35 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -340,11 +340,11 @@ static int parse_argv(int argc, char *argv[]) { r = path_make_absolute_cwd(u, &p); if (r < 0) - return log_error_errno(r, "Failed to make path absolute: %m"); + return log_error_errno(r, "Failed to make path %s absolute: %m", u); arg_mount_what = canonicalize_file_name(p); if (!arg_mount_what) - return log_error_errno(errno, "Failed to canonicalize path: %m"); + return log_error_errno(errno, "Failed to canonicalize path %s: %m", p); } else { arg_mount_what = strdup(argv[optind]); if (!arg_mount_what) @@ -364,11 +364,11 @@ static int parse_argv(int argc, char *argv[]) { r = path_make_absolute_cwd(argv[optind+1], &p); if (r < 0) - return log_error_errno(r, "Failed to make path absolute: %m"); + return log_error_errno(r, "Failed to make path %s absolute: %m", argv[optind+1]); arg_mount_where = canonicalize_file_name(p); if (!arg_mount_where) - return log_error_errno(errno, "Failed to canonicalize path: %m"); + return log_error_errno(errno, "Failed to canonicalize path %s: %m", p); } else { arg_mount_where = strdup(argv[optind+1]);