From: Helge Deller Date: Thu, 31 Jan 2008 11:58:56 +0000 (-0800) Subject: [NETFILTER]: nf_log: add netfilter gcc printf format checking X-Git-Tag: v2.6.25-rc1~1089^2~95 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=000e8a53540b75a885efeb00ec1f1cb3c8d0bead;p=~shefty%2Frdma-dev.git [NETFILTER]: nf_log: add netfilter gcc printf format checking Signed-off-by: Helge Deller Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/include/net/netfilter/nf_log.h b/include/net/netfilter/nf_log.h index 037e82403f9..8c6b5ae4553 100644 --- a/include/net/netfilter/nf_log.h +++ b/include/net/netfilter/nf_log.h @@ -54,6 +54,6 @@ void nf_log_packet(int pf, const struct net_device *in, const struct net_device *out, const struct nf_loginfo *li, - const char *fmt, ...); + const char *fmt, ...) __attribute__ ((format(printf,7,8))); #endif /* _NF_LOG_H */