From: Karel Zak Date: Tue, 28 Jan 2025 12:10:30 +0000 (+0100) Subject: libmount: reduce size of syscall-failed message X-Git-Tag: v2.42-start~64^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14233b28c0169d89d224065c805368893a097a6b;p=thirdparty%2Futil-linux.git libmount: reduce size of syscall-failed message The current version is too long. OLD: mount: /mnt/test/fileA: mount_setattr system call failed: cannot set ID-mapping: Operation not permitted. NEW: mount: /mnt/test/fileA: mount_setattr() failed: cannot set ID-mapping: Operation not permitted. Signed-off-by: Karel Zak --- diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index f0b80f0b0..f2fa630f7 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -1664,7 +1664,7 @@ int mnt_context_get_mount_excode( if (buf && mnt_context_get_nmesgs(cxt, 'e')) { if (cxt->syscall_name) { size_t len = snprintf(buf, bufsz, - _("%s system call failed: "), + _("%s() failed: "), cxt->syscall_name); join_err_mesgs(cxt, buf + len, bufsz - len); } else @@ -1839,7 +1839,7 @@ int mnt_context_get_mount_excode( generic_error: if (buf) { errno = syserr; - snprintf(buf, bufsz, _("%s system call failed: %m"), + snprintf(buf, bufsz, _("%s() failed: %m"), cxt->syscall_name ? : "mount"); } break;