]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/path: add __format__ attr to ul_path_v?statf()
authorMasatake YAMATO <yamato@redhat.com>
Fri, 9 Jan 2026 16:19:30 +0000 (01:19 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 12 Jan 2026 18:26:33 +0000 (03:26 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
include/path.h

index f413ea3f9da74aa95c2df8d7cbbc85cb52104561..7f86b775ba8771a2cd2b4522aa37ccb915e85b1b 100644 (file)
@@ -53,8 +53,10 @@ char *ul_path_get_abspath(struct path_cxt *pc, char *buf, size_t bufsz, const ch
                                __attribute__ ((__format__ (__printf__, 4, 5)));
 
 int ul_path_stat(struct path_cxt *pc, struct stat *sb, int flags, const char *path);
-int ul_path_vstatf(struct path_cxt *pc, struct stat *sb, int flags, const char *path, va_list ap);
-int ul_path_statf(struct path_cxt *pc, struct stat *sb, int flags, const char *path, ...);
+int ul_path_vstatf(struct path_cxt *pc, struct stat *sb, int flags, const char *path, va_list ap)
+                               __attribute__ ((__format__ (__printf__, 4, 0)));
+int ul_path_statf(struct path_cxt *pc, struct stat *sb, int flags, const char *path, ...)
+                               __attribute__ ((__format__ (__printf__, 4, 5)));
 
 int ul_path_access(struct path_cxt *pc, int mode, const char *path);
 int ul_path_accessf(struct path_cxt *pc, int mode, const char *path, ...)