selftests: bpf: Move bpf_printk to bpf_helpers.h

bpf_printk is a macro which is commonly used to print out debug messages
in BPF programs and it was copied in many selftests and samples. Since
all of them include bpf_helpers.h, this change moves the macro there.

Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
Michal Rostecki 2019-05-23 14:53:54 +02:00 • committed by Alexei Starovoitov
commit 37739d1b4f
7 changed files with 8 additions and 42 deletions