Commit 0342ef50 authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #1443 from iovisor/yhs_dev

use user-provided log_level in bpf_prog_load
parents 5e86c133 e86b017e
......@@ -448,7 +448,8 @@ int bpf_prog_load(enum bpf_prog_type prog_type, const char *name,
if (tmp_log_buf)
free(tmp_log_buf);
tmp_log_buf_size = LOG_BUF_SIZE;
attr.log_level = 1;
if (attr.log_level == 0)
attr.log_level = 1;
for (;;) {
tmp_log_buf = malloc(tmp_log_buf_size);
if (!tmp_log_buf) {
......
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