]> err.no Git - util-linux/commitdiff
blkid: add __attribute__ ((format))
authorKarel Zak <kzak@redhat.com>
Thu, 25 Sep 2008 21:54:19 +0000 (23:54 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:21:45 +0000 (23:21 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/blkidP.h

index e5641d6b7ac599a5feef9a9663cd024283195c3a..13f66f7c9444a503c2a7334810bbfdff0bb84cbc 100644 (file)
@@ -259,12 +259,16 @@ extern int blkid_probe_set_value(blkid_probe pr, const char *name,
 extern int blkid_probe_vsprintf_value(blkid_probe pr, const char *name,
                 const char *fmt, va_list ap);
 extern int blkid_probe_set_version(blkid_probe pr, const char *version);
-extern int blkid_probe_sprintf_version(blkid_probe pr, const char *fmt, ...);
+extern int blkid_probe_sprintf_version(blkid_probe pr, const char *fmt, ...)
+               __attribute__ ((format (printf, 2, 3)));
+
 extern int blkid_probe_set_label(blkid_probe pr, unsigned char *label, size_t len);
 extern int blkid_probe_set_utf8label(blkid_probe pr, unsigned char *label,
                 size_t len, int enc);
 extern int blkid_probe_sprintf_uuid(blkid_probe pr, unsigned char *uuid,
-                                size_t len, const char *fmt, ...);
+                size_t len, const char *fmt, ...)
+               __attribute__ ((format (printf, 4, 5)));
+
 extern int blkid_probe_set_uuid(blkid_probe pr, unsigned char *uuid);
 extern int blkid_probe_set_uuid_as(blkid_probe pr, unsigned char *uuid, const char *name);