From 000e8a53540b75a885efeb00ec1f1cb3c8d0bead Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Thu, 31 Jan 2008 03:58:56 -0800 Subject: [PATCH] [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 --- include/net/netfilter/nf_log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/netfilter/nf_log.h b/include/net/netfilter/nf_log.h index 037e82403f91..8c6b5ae45534 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 */ -- 2.30.2