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)
commit35b7ee34abdb722192635528f162ddd8cac25765
tree010001eae3ff87e923228919fe89af40fad0ab2a
parent3976ca101990ca11ddf51f38bec7b86c19d0ca6f
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