Skip to content

Commit

Permalink
XDP tools already defines bpf_printk() now.
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemann committed Jun 19, 2023
1 parent c27398e commit d5fe99c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/xdpfw_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@

#include "xdpfw.h"

#ifdef DEBUG
#define bpf_printk(fmt, ...) \
({ \
char ____fmt[] = fmt; \
bpf_trace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \
})
#endif

#ifndef memcpy
#define memcpy(dest, src, n) __builtin_memcpy((dest), (src), (n))
#endif
Expand Down

0 comments on commit d5fe99c

Please sign in to comment.