diff options
| author | Michal Rostecki <[email protected]> | 2019-05-23 12:53:55 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-05-24 20:47:17 +0000 |
| commit | c87f60a77db2c01770ef9c6ea792a1d39c3594ff (patch) | |
| tree | 86953c8307a303a61b3c152c6dd95ada5329f020 /samples/bpf/tcp_clamp_kern.c | |
| parent | selftests: bpf: Move bpf_printk to bpf_helpers.h (diff) | |
| download | kernel-c87f60a77db2c01770ef9c6ea792a1d39c3594ff.tar.gz kernel-c87f60a77db2c01770ef9c6ea792a1d39c3594ff.zip | |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'samples/bpf/tcp_clamp_kern.c')
| -rw-r--r-- | samples/bpf/tcp_clamp_kern.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/samples/bpf/tcp_clamp_kern.c b/samples/bpf/tcp_clamp_kern.c index a0dc2d254aca..26c0fd091f3c 100644 --- a/samples/bpf/tcp_clamp_kern.c +++ b/samples/bpf/tcp_clamp_kern.c @@ -22,13 +22,6 @@ #define DEBUG 1 -#define bpf_printk(fmt, ...) \ -({ \ - char ____fmt[] = fmt; \ - bpf_trace_printk(____fmt, sizeof(____fmt), \ - ##__VA_ARGS__); \ -}) - SEC("sockops") int bpf_clamp(struct bpf_sock_ops *skops) { |
