aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount.c
diff options
context:
space:
mode:
authorBernd Schubert <bernd@bsbernd.com>2025-09-18 23:39:11 +0200
committerBernd Schubert <bernd@bsbernd.com>2025-09-19 14:02:14 +0200
commit3e2cd9e46c87a57de374b82fd198328f7745e942 (patch)
treeb9c810312020980871f28d2ff35d56243b693d74 /lib/mount.c
parent52a633a5d4435f1965fc8d44cf9a705e6679f793 (diff)
downloadlibfuse-3e2cd9e46c87a57de374b82fd198328f7745e942.tar.gz
fuse_log: Add __attribute__((format(printf, ) and fix warnings
fuse_log() did not have that attribute and so compilers didn't give warnings for plain printf(). Add the attribute and fix related warnings. Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
Diffstat (limited to 'lib/mount.c')
-rw-r--r--lib/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mount.c b/lib/mount.c
index 2eb9673..5492680 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -361,7 +361,7 @@ static int setup_auto_unmount(const char *mountpoint, int quiet)
res = socketpair(PF_UNIX, SOCK_STREAM, 0, fds);
if(res == -1) {
- fuse_log(FUSE_LOG_ERR, "Setting up auto-unmountsocketpair() failed",
+ fuse_log(FUSE_LOG_ERR, "Setting up auto-unmount socketpair() failed: %s\n",
strerror(errno));
return -1;
}