diff options
author | Bernd Schubert <bernd@bsbernd.com> | 2025-09-18 23:39:11 +0200 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-09-19 14:02:14 +0200 |
commit | 3e2cd9e46c87a57de374b82fd198328f7745e942 (patch) | |
tree | b9c810312020980871f28d2ff35d56243b693d74 /lib/fuse.c | |
parent | 52a633a5d4435f1965fc8d44cf9a705e6679f793 (diff) | |
download | libfuse-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/fuse.c')
-rw-r--r-- | lib/fuse.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2122,10 +2122,10 @@ int fuse_fs_utimens(struct fuse_fs *fs, const char *path, if (fs->debug) { char buf[10]; - fuse_log(FUSE_LOG_DEBUG, "utimens[%s] %s %li.%09lu %li.%09lu\n", - file_info_string(fi, buf, sizeof(buf)), - path, tv[0].tv_sec, tv[0].tv_nsec, - tv[1].tv_sec, tv[1].tv_nsec); + fuse_log(FUSE_LOG_DEBUG, "utimens[%s] %s %jd.%09ld %jd.%09ld\n", + file_info_string(fi, buf, sizeof(buf)), + path, (intmax_t)tv[0].tv_sec, tv[0].tv_nsec, + (intmax_t)tv[1].tv_sec, tv[1].tv_nsec); } return fs->op.utimens(path, tv, fi); } |