Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
34b3c10e
Commit
34b3c10e
authored
Dec 07, 2017
by
yonghong-song
Committed by
GitHub
Dec 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1475 from palmtenor/log_print
Do not print to stderr if user specified log buffer
parents
bf1a54c9
c669257c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/cc/libbpf.c
src/cc/libbpf.c
+5
-3
No files found.
src/cc/libbpf.c
View file @
34b3c10e
...
...
@@ -474,10 +474,12 @@ int bpf_prog_load(enum bpf_prog_type prog_type, const char *name,
}
}
//
If log_level is not 0, either speficied by user or set due to error
,
//
print the log message
.
//
Check if we should print the log message if log_level is not 0
,
//
either specified by user or set due to error
.
if
(
attr
.
log_level
>
0
)
{
if
(
log_buf
)
// Don't print if user enabled logging and provided log buffer,
// but there is no error.
if
(
log_buf
&&
ret
<
0
)
bpf_print_hints
(
ret
,
log_buf
);
else
if
(
tmp_log_buf
)
bpf_print_hints
(
ret
,
tmp_log_buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment