From: Masatake YAMATO Date: Fri, 9 Jan 2026 16:19:30 +0000 (+0900) Subject: lib/path: add __format__ attr to ul_path_v?statf() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17c8ca7913caecd6c9e223cccc825a23deb8679d;p=thirdparty%2Futil-linux.git lib/path: add __format__ attr to ul_path_v?statf() Signed-off-by: Masatake YAMATO --- diff --git a/include/path.h b/include/path.h index f413ea3f9..7f86b775b 100644 --- a/include/path.h +++ b/include/path.h @@ -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, ...)