From fc53809803cd2bc2434e312b19a18fa36776da12 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 05:50:40 +0200 Subject: Adding upstream version 256. Signed-off-by: Daniel Baumann --- src/udev/udevadm-lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/udev/udevadm-lock.c') diff --git a/src/udev/udevadm-lock.c b/src/udev/udevadm-lock.c index bc2d5e7..e6384e3 100644 --- a/src/udev/udevadm-lock.c +++ b/src/udev/udevadm-lock.c @@ -126,7 +126,7 @@ static int parse_argv(int argc, char *argv[]) { if (arg_print) { if (optind != argc) - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "No arguments expected"); + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "No arguments expected."); } else { if (optind + 1 > argc) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Too few arguments, command to execute."); @@ -193,7 +193,7 @@ static int lock_device( /* Extra safety: check that the device still refers to what we think it refers to */ if (!S_ISBLK(st.st_mode) || st.st_rdev != devno) - return log_error_errno(SYNTHETIC_ERRNO(ENXIO), "Path '%s' no longer refers to specified block device %u:%u: %m", path, major(devno), minor(devno)); + return log_error_errno(SYNTHETIC_ERRNO(ENXIO), "Path '%s' no longer refers to specified block device %u:%u.", path, major(devno), minor(devno)); r = lock_generic(fd, LOCK_BSD, LOCK_EX|LOCK_NB); if (r < 0) { -- cgit v1.2.3