samples: bpf: Do not define bpf_printk macro
The bpf_printk macro was moved to bpf_helpers.h which is included in all example programs. Signed-off-by: Michal Rostecki <mrostecki@opensuse.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:

committed by
Alexei Starovoitov

parent
37739d1b4f
commit
c87f60a77d
@@ -21,13 +21,6 @@
|
||||
|
||||
#define DEBUG 1
|
||||
|
||||
#define bpf_printk(fmt, ...) \
|
||||
({ \
|
||||
char ____fmt[] = fmt; \
|
||||
bpf_trace_printk(____fmt, sizeof(____fmt), \
|
||||
##__VA_ARGS__); \
|
||||
})
|
||||
|
||||
SEC("sockops")
|
||||
int bpf_cong(struct bpf_sock_ops *skops)
|
||||
{
|
||||
|
Reference in New Issue
Block a user