Patchwork [23/23] netfilter: xt_LOG: add __printf() to sb_add()

login
register
mail settings
Submitter Pablo Neira
Date March 8, 2012, 1:01 a.m.
Message ID <1331168472-5820-24-git-send-email-pablo@netfilter.org>
Download mbox | patch
Permalink /patch/145393/
State Accepted
Delegated to: David Miller
Headers show

Comments

Pablo Neira - March 8, 2012, 1:01 a.m.
From: Eric Dumazet <eric.dumazet@gmail.com>

Helps to find format mismatches at compile time

Suggested-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
 include/net/netfilter/xt_log.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/include/net/netfilter/xt_log.h b/include/net/netfilter/xt_log.h
index 0dfb34a..7e1544e 100644
--- a/include/net/netfilter/xt_log.h
+++ b/include/net/netfilter/xt_log.h
@@ -6,7 +6,7 @@  struct sbuff {
 };
 static struct sbuff emergency, *emergency_ptr = &emergency;
 
-static int sb_add(struct sbuff *m, const char *f, ...)
+static __printf(2, 3) int sb_add(struct sbuff *m, const char *f, ...)
 {
 	va_list args;
 	int len;