From c3f683c497ab09ea747972267ee56474209e5f4c Mon Sep 17 00:00:00 2001 From: !uv Date: Fri, 20 Aug 2004 11:58:24 +0000 Subject: [PATCH] Allow better error checking. (Logical change 1.504) --- ntfsprogs/ntfsdump_logfile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ntfsprogs/ntfsdump_logfile.c b/ntfsprogs/ntfsdump_logfile.c index b652170f..76e6e122 100644 --- a/ntfsprogs/ntfsdump_logfile.c +++ b/ntfsprogs/ntfsdump_logfile.c @@ -48,7 +48,8 @@ * device_err_exit - */ void device_err_exit(char *dev_name, ntfs_volume *vol, ntfs_inode *ni, - ntfs_attr *na, const char *fmt, ...) __attribute__ ((noreturn)); + ntfs_attr *na, const char *fmt, ...) __attribute__ ((noreturn)) + __attribute__((format(printf, 5, 6))); void device_err_exit(char *dev_name, ntfs_volume *vol, ntfs_inode *ni, ntfs_attr *na, const char *fmt, ...) { @@ -73,7 +74,8 @@ void device_err_exit(char *dev_name, ntfs_volume *vol, ntfs_inode *ni, /** * log_err_exit - */ -void log_err_exit(u8 *buf, const char *fmt, ...) __attribute__ ((noreturn)); +void log_err_exit(u8 *buf, const char *fmt, ...) __attribute__ ((noreturn)) + __attribute__((format(printf, 2, 3))); void log_err_exit(u8 *buf, const char *fmt, ...) { va_list ap;