Skip to content

Commit 000e8a5

Browse files
hdellerdavem330
authored andcommitted
[NETFILTER]: nf_log: add netfilter gcc printf format checking
Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b416499 commit 000e8a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/netfilter/nf_log.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ void nf_log_packet(int pf,
5454
const struct net_device *in,
5555
const struct net_device *out,
5656
const struct nf_loginfo *li,
57-
const char *fmt, ...);
57+
const char *fmt, ...) __attribute__ ((format(printf,7,8)));
5858

5959
#endif /* _NF_LOG_H */

0 commit comments

Comments
 (0)