diff options
author | Teng Qin <palmtenor@gmail.com> | 2018-08-09 16:39:52 -0700 |
---|---|---|
committer | yonghong-song <ys114321@gmail.com> | 2018-08-09 16:39:52 -0700 |
commit | 5aadf2ed9a017d2cd24c4b23ee04b6cb8e9da2b7 (patch) | |
tree | 7bbc23e20500f53f26ff8c6ea5854307c829c177 /src | |
parent | 7bb6a4b1d005af8084a1deb3e04265bcb457abab (diff) | |
download | bcc-5aadf2ed9a017d2cd24c4b23ee04b6cb8e9da2b7.tar.gz |
Add name to program too large error message (#1917)
Add name to program too large error message
Diffstat (limited to 'src')
-rw-r--r-- | src/cc/libbpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cc/libbpf.c b/src/cc/libbpf.c index acfbc5e3..92cc1d33 100644 --- a/src/cc/libbpf.c +++ b/src/cc/libbpf.c @@ -481,8 +481,8 @@ int bpf_prog_load(enum bpf_prog_type prog_type, const char *name, if (attr.insn_cnt > BPF_MAXINSNS) { errno = EINVAL; fprintf(stderr, - "bpf: %s. Program too large (%u insns), at most %d insns\n\n", - strerror(errno), attr.insn_cnt, BPF_MAXINSNS); + "bpf: %s. Program %s too large (%u insns), at most %d insns\n\n", + strerror(errno), name, attr.insn_cnt, BPF_MAXINSNS); return -1; } |