diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-03-01 02:56:59 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-03-07 16:41:52 (GMT) |
commit | ace30d73ef09fd5f95b24c5c1c5aa11963981494 (patch) | |
tree | 0299eb54478deddc719e4aff9d24ad9d34529912 /include/net | |
parent | 24de58f465165298aaa8f286b2592f0163706cfe (diff) | |
download | linux-fsl-qoriq-ace30d73ef09fd5f95b24c5c1c5aa11963981494.tar.xz |
netfilter: xt_LOG: add __printf() to sb_add()
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/xt_log.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |