bpf, verifier: annotate verbose printer with __printf
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 3 Nov 2015 10:39:20 +0000 (11:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 16:29:56 +0000 (11:29 -0500)
commit1d056d9c95be87725c07e514930b41c2c7174e75
tree74f2a040a020c31955e985b9480ed16b72fb51d7
parent85013ab5722268cd3c410425bd5a42feb6974a1f
bpf, verifier: annotate verbose printer with __printf

The verbose() printer dumps the verifier state to user space, so let gcc
take care to check calls to verbose() for (future) errors. make with W=1
correctly suggests: function might be possible candidate for 'gnu_printf'
format attribute [-Wsuggest-attribute=format].

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/verifier.c