XDP tools already defines bpf_printk() now.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user