From 17c8ca7913caecd6c9e223cccc825a23deb8679d Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Sat, 10 Jan 2026 01:19:30 +0900 Subject: [PATCH] lib/path: add __format__ attr to ul_path_v?statf() Signed-off-by: Masatake YAMATO --- include/path.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, ...) -- 2.47.3