Commit 5aadf2ed authored by Teng Qin's avatar Teng Qin Committed by yonghong-song

Add name to program too large error message (#1917)

Add name to program too large error message
parent 7bb6a4b1
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment