public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - gfs: add missing format attributes
@ 2009-06-23  4:53 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-06-23  4:53 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9ff7978578fc2ee060e5a0b3c16768a6bc4c2d7e
Commit:        9ff7978578fc2ee060e5a0b3c16768a6bc4c2d7e
Parent:        f53a48a8e3cd84bfa4359ceddbd7d503f9277b03
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:52:20 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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-23  4:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-23  4:53 cluster: STABLE3 - gfs: add missing format attributes Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).