diff options
author | Karel Zak | 2010-09-29 11:19:18 +0200 |
---|---|---|
committer | Karel Zak | 2011-01-03 12:28:43 +0100 |
commit | 0ccfc837ee1e7c8fc48626433fd2fcc8adc872b2 (patch) | |
tree | 72306cae5d8dee37419a7a26361b6c7a7d96e62d /shlibs/mount/src/mountP.h | |
parent | libmount: add FS detection (diff) | |
download | kernel-qcow2-util-linux-0ccfc837ee1e7c8fc48626433fd2fcc8adc872b2.tar.gz kernel-qcow2-util-linux-0ccfc837ee1e7c8fc48626433fd2fcc8adc872b2.tar.xz kernel-qcow2-util-linux-0ccfc837ee1e7c8fc48626433fd2fcc8adc872b2.zip |
libmount: use attribute __format__ for debug routines
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/mountP.h')
-rw-r--r-- | shlibs/mount/src/mountP.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shlibs/mount/src/mountP.h b/shlibs/mount/src/mountP.h index 9e8aa9dac..289249e53 100644 --- a/shlibs/mount/src/mountP.h +++ b/shlibs/mount/src/mountP.h @@ -59,7 +59,8 @@ extern int libmount_debug_mask; -static inline void mnt_debug(const char *mesg, ...) +static inline void __attribute__ ((__format__ (__printf__, 1, 2))) +mnt_debug(const char *mesg, ...) { va_list ap; va_start(ap, mesg); @@ -68,7 +69,8 @@ static inline void mnt_debug(const char *mesg, ...) fputc('\n', stderr); } -static inline void mnt_debug_h(void *handler, const char *mesg, ...) +static inline void __attribute__ ((__format__ (__printf__, 2, 3))) +mnt_debug_h(void *handler, const char *mesg, ...) { va_list ap; |