]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
netfilter: xt_LOG: add __printf() to sb_add()
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 1 Mar 2012 02:56:59 +0000 (02:56 +0000)
committerPablo 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

index 0dfb34a5b53c3440469e51873d886a5312ec9615..7e1544e8f70d36599205fd821f1cdc34705d1676 100644 (file)
@@ -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;