mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
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>
This commit is contained in:
parent
0a2d28ff51
commit
48b3256326
|
@ -29,8 +29,8 @@ extern const char *const bpf_class_string[8];
|
|||
|
||||
const char *func_id_name(int id);
|
||||
|
||||
typedef void (*bpf_insn_print_t)(struct bpf_verifier_env *env,
|
||||
const char *, ...);
|
||||
typedef __printf(2, 3) void (*bpf_insn_print_t)(struct bpf_verifier_env *env,
|
||||
const char *, ...);
|
||||
typedef const char *(*bpf_insn_revmap_call_t)(void *private_data,
|
||||
const struct bpf_insn *insn);
|
||||
typedef const char *(*bpf_insn_print_imm_t)(void *private_data,
|
||||
|
|
Loading…
Reference in a new issue