]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nftables: Add __printf() attribute
authorAndrew Lunn <andrew@lunn.ch>
Sat, 31 Oct 2020 18:21:44 +0000 (19:21 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 1 Nov 2020 10:50:32 +0000 (11:50 +0100)
commitdcf80c0c74a74ab252d17eac1f4ac27da11f3d89
tree010001eae3ff87e923228919fe89af40fad0ab2a
parent3b27f12ca7179d52be401d52e309c06808d8fc11
netfilter: nftables: Add __printf() attribute

nft_request_module calls vsnprintf() using parameters passed to it.
Make the function with __printf() attribute so the compiler can check
the format and arguments.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c