This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gfs1-utils: master - gfs: add missing format attributes


Gitweb:        http://git.fedorahosted.org/git/gfs1-utils.git?p=gfs1-utils.git;a=commitdiff;h=c2ef0a3a3a331761abfeef1cc89da57312c75838
Commit:        c2ef0a3a3a331761abfeef1cc89da57312c75838
Parent:        cfa102a12136a1e1d6a28da63fc5e19c341543f6
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Tue Jun 23 06:52:20 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Jun 23 06:53:05 2009 +0200

gfs: add missing format attributes

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 gfs/gfs_fsck/log.c |    9 ++++++---
 gfs/libgfs/log.c   |    9 ++++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/gfs/gfs_fsck/log.c b/gfs/gfs_fsck/log.c
index 5e65976..2d6476c 100644
--- a/gfs/gfs_fsck/log.c
+++ b/gfs/gfs_fsck/log.c
@@ -26,7 +26,8 @@ void decrease_verbosity(void)
 	_state.print_level--;
 }
 
-static void print_msg(int priority, const char *file, int line, const char *format, va_list args) {
+static void __attribute__((format(printf, 4, 0)))
+print_msg(int priority, const char *file, int line, const char *format, va_list args) {
 
 	switch (priority) {
 
@@ -51,7 +52,8 @@ static void print_msg(int priority, const char *file, int line, const char *form
 }
 
 
-void print_fsck_log(int iif, int priority, const char *file, int line, const char *format, ...)
+void __attribute__((format(printf, 5, 6)))
+print_fsck_log(int iif, int priority, const char *file, int line, const char *format, ...)
 {
 
 	va_list args;
@@ -70,7 +72,8 @@ void print_fsck_log(int iif, int priority, const char *file, int line, const cha
 
 
 
-int query(struct fsck_sb *sbp, const char *format, ...)
+int __attribute__((format(printf, 2, 3)))
+query(struct fsck_sb *sbp, const char *format, ...)
 {
 
 	va_list args;
diff --git a/gfs/libgfs/log.c b/gfs/libgfs/log.c
index fe9e152..c80e85e 100644
--- a/gfs/libgfs/log.c
+++ b/gfs/libgfs/log.c
@@ -26,7 +26,8 @@ void decrease_verbosity(void)
 	_state.print_level--;
 }
 
-static void print_msg(int priority, const char *file, int line, const char *format, va_list args) {
+static void __attribute__((format(printf, 4, 0)))
+print_msg(int priority, const char *file, int line, const char *format, va_list args) {
 
 	switch (priority) {
 
@@ -48,7 +49,8 @@ static void print_msg(int priority, const char *file, int line, const char *form
 	return;
 }
 
-void print_log_level(int iif, int priority, const char *file, int line, const char *format, ...)
+void __attribute__((format(printf, 5, 6)))
+print_log_level(int iif, int priority, const char *file, int line, const char *format, ...)
 {
 
 	va_list args;
@@ -65,7 +67,8 @@ void print_log_level(int iif, int priority, const char *file, int line, const ch
 	va_end(args);
 }
 
-int query(struct options *opts, const char *format, ...)
+int __attribute__((format(printf, 2, 3)))
+query(struct options *opts, const char *format, ...)
 {
 
 	va_list args;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]