Browse Source

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>
Eric Dumazet 13 years ago
parent
commit
ace30d73ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/net/netfilter/xt_log.h

+ 1 - 1
include/net/netfilter/xt_log.h

@@ -6,7 +6,7 @@ struct sbuff {
 };
 };
 static struct sbuff emergency, *emergency_ptr = &emergency;
 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;
 	va_list args;
 	int len;
 	int len;