From: chenyuezhou Date: Mon, 24 May 2021 21:33:27 +0000 (-0400) Subject: adjust: bpf_attach_xdp report nicer error X-Git-Tag: v0.21.0~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cca23e54a89f543378a661e436acc7801502190;p=platform%2Fupstream%2Fbcc.git adjust: bpf_attach_xdp report nicer error --- diff --git a/src/cc/libbpf.c b/src/cc/libbpf.c index b83d68fd..0ba0c83e 100644 --- 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; }