diff options
| author | Quentin Monnet <[email protected]> | 2019-08-15 14:32:19 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-08-16 05:06:46 +0000 |
| commit | b0ead6d75a5b335287337e602e6b815e1115481c (patch) | |
| tree | d14607a2eca6ae72c5342a1762229e8d1ec768c8 /tools/bpf/bpftool/common.c | |
| parent | tools: bpftool: fix format string for p_err() in query_flow_dissector() (diff) | |
| download | kernel-b0ead6d75a5b335287337e602e6b815e1115481c.tar.gz kernel-b0ead6d75a5b335287337e602e6b815e1115481c.zip | |
tools: bpftool: fix format string for p_err() in detect_common_prefix()
There is one call to the p_err() function in detect_common_prefix()
where the message to print is passed directly as the first argument,
without using a format string. This is harmless, but may trigger
warnings if the "__printf()" attribute is used correctly for the p_err()
function. Let's fix it by using a "%s" format string.
Fixes: ba95c7452439 ("tools: bpftool: add "prog run" subcommand to test-run programs")
Signed-off-by: Quentin Monnet <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions
