From a9e7005ba250e544e0824f4826c500a6f9fcdcaf Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 25 Sep 2008 23:54:19 +0200 Subject: [PATCH] blkid: add __attribute__ ((format)) Signed-off-by: Karel Zak --- libs/blkid/src/blkidP.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/blkid/src/blkidP.h b/libs/blkid/src/blkidP.h index e5641d6b..13f66f7c 100644 --- a/libs/blkid/src/blkidP.h +++ b/libs/blkid/src/blkidP.h @@ -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); -- 2.39.5