diff options
author | Yonghong Song <yhs@fb.com> | 2019-02-01 16:14:17 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-02-04 09:40:59 -0800 |
commit | 6f1ae8b6628b9e054d3a8c959cf472234944a578 (patch) | |
tree | a06e49a2ac5d5a35f3fb6a25c1ea689f3c6bfe40 /tools/lib/bpf/test_libbpf.cpp | |
parent | 9d100a19ffa519b17a0e998918337da5386e47fb (diff) |
tools/bpf: simplify libbpf API function libbpf_set_print()
Currently, the libbpf API function libbpf_set_print()
takes three function pointer parameters for warning, info
and debug printout respectively.
This patch changes the API to have just one function pointer
parameter and the function pointer has one additional
parameter "debugging level". So if in the future, if
the debug level is increased, the function signature
won't change.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/test_libbpf.cpp')
-rw-r--r-- | tools/lib/bpf/test_libbpf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/test_libbpf.cpp b/tools/lib/bpf/test_libbpf.cpp index be67f5ea2c19..fc134873bb6d 100644 --- a/tools/lib/bpf/test_libbpf.cpp +++ b/tools/lib/bpf/test_libbpf.cpp @@ -8,7 +8,7 @@ int main(int argc, char *argv[]) { /* libbpf.h */ - libbpf_set_print(NULL, NULL, NULL); + libbpf_set_print(NULL); /* bpf.h */ bpf_prog_get_fd_by_id(0); |