All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] add netfilter gcc printf format checking
Date: Sun, 6 Jan 2008 21:16:38 +0100	[thread overview]
Message-ID: <200801062116.38955.deller@gmx.de> (raw)
In-Reply-To: <200801061445.53098.deller@gmx.de>

updated patch below
=================

[PATCH] add netfilter gcc printf format checking

Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 16adac6..5d9ecdc 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -181,7 +181,7 @@ void nf_log_packet(int pf,
 		   const struct net_device *in,
 		   const struct net_device *out,
 		   struct nf_loginfo *li,
-		   const char *fmt, ...);
+		   const char *fmt, ...) __attribute__ ((format(printf,7,8)));
 
 int nf_hook_slow(int pf, unsigned int hook, struct sk_buff *skb,
 		 struct net_device *indev, struct net_device *outdev,

  reply	other threads:[~2008-01-06 20:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-06 13:45 [PATCH] add netfilter gcc printf format checking Helge Deller
2008-01-06 20:16 ` Helge Deller [this message]
2008-01-15  7:07   ` Patrick McHardy
2008-01-17 21:37     ` Helge Deller
2008-01-20 13:05       ` Patrick McHardy

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=200801062116.38955.deller@gmx.de \
    --to=deller@gmx.de \
    --cc=netfilter-devel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.