public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: STABLE3 - gfs: add missing format attributes
Date: Tue, 23 Jun 2009 04:53:00 -0000	[thread overview]
Message-ID: <20090623045244.739E11201EF@lists.fedorahosted.org> (raw)

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;


                 reply	other threads:[~2009-06-23  4:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090623045244.739E11201EF@lists.fedorahosted.org \
    --to=fabbione@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).