OSDN Git Service

bpf: annotate bpf_insn_print_t with __printf
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 16 Jan 2018 23:51:46 +0000 (15:51 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 17 Jan 2018 00:15:05 +0000 (01:15 +0100)
commit48b325632641da27a241912d66b38a1221ab425f
tree50b2ed3d52213cc7ae791f9a95639868a1b0bc55
parent0a2d28ff516c48a21c1e3be1ff7fba3e94248baa
bpf: annotate bpf_insn_print_t with __printf

Functions of type bpf_insn_print_t take printf-like format
string, mark the type accordingly.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/disasm.h