From 14233b28c0169d89d224065c805368893a097a6b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 28 Jan 2025 13:10:30 +0100 Subject: [PATCH] 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 --- libmount/src/context_mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3