projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1ebd4f
)
adjust: bpf_attach_xdp report nicer error
author
chenyuezhou
<zcy.chenyue.zhou@gmail.com>
Mon, 24 May 2021 21:33:27 +0000
(17:33 -0400)
committer
yonghong-song
<ys114321@gmail.com>
Wed, 26 May 2021 00:01:04 +0000
(17:01 -0700)
src/cc/libbpf.c
patch
|
blob
|
history
diff --git
a/src/cc/libbpf.c
b/src/cc/libbpf.c
index b83d68fd7b6e8af0abf1639a7bb639aec865f7ab..0ba0c83e1d94ae2248ea4b8f045b589654762e9d 100644
(file)
--- a/
src/cc/libbpf.c
+++ b/
src/cc/libbpf.c
@@
-1413,7
+1413,7
@@
int bpf_attach_xdp(const char *dev_name, int progfd, uint32_t flags) {
ret = bpf_set_link_xdp_fd(ifindex, progfd, flags);
if (ret) {
libbpf_strerror(ret, err_buf, sizeof(err_buf));
- fprintf(stderr, "bpf: Attaching prog to %s: %s", dev_name, err_buf);
+ fprintf(stderr, "bpf: Attaching prog to %s: %s
\n
", dev_name, err_buf);
return -1;
}