Skip to content

Commit

Permalink
netfilter: xt_LOG: add __printf() to sb_add()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and Pablo Neira Ayuso committed Mar 7, 2012
1 parent 24de58f commit ace30d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/netfilter/xt_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ace30d7

Please sign in to comment.