Commit e596170f authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #838 from palmtenor/logmsg

Avoid unexpected log message on BPF program load error
parents 211a989b ba8cb309
......@@ -201,6 +201,7 @@ int bpf_prog_load(enum bpf_prog_type prog_type,
strerror(errno));
return ret;
}
bpf_log_buffer[0] = 0;
attr.log_buf = ptr_to_u64(bpf_log_buffer);
attr.log_size = buffer_size;
......
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