projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24de58f
)
netfilter: xt_LOG: add __printf() to sb_add()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 1 Mar 2012 02:56:59 +0000
(
02:56
+0000)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 7 Mar 2012 16:41:52 +0000
(17:41 +0100)
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
patch
|
blob
|
history
diff --git
a/include/net/netfilter/xt_log.h
b/include/net/netfilter/xt_log.h
index 0dfb34a5b53c3440469e51873d886a5312ec9615..7e1544e8f70d36599205fd821f1cdc34705d1676 100644
(file)
--- 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;