bpftool: simplify format string to not use positional args
Subsystems (4)
PATCH 1/1 bpftool: simplify format string to not use positional args
Change format string referring to just single argument out of two available. Some versions of libc can reject such format string.
Reported-by Nikita Shirokov <[email protected]>
Signed-off-by Andrii Nakryiko <[email protected]>
--- tools/bpf/bpftool/gen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/bpf/bpftool/gen.c +2 -2
@@ -567,9 +567,9 @@ static int do_skeleton(int argc, char **argv) return -1; \n\ } \n\ \n\ - #endif /* %2$s */ \n\ + #endif /* %s */ \n\ ", - obj_name, header_guard); + header_guard); err =0 ; out:bpf_object__close (obj);
Signature · 1 line
2.17.1
Quoted 5 lines · Andrii Nakryiko
Change format string referring to just single argument out of two available. Some versions of libc can reject such format string.
Reported-by Nikita Shirokov <[email protected]>Signed-off-by Andrii Nakryiko <[email protected]>
Acked-by Yonghong Song <[email protected]>
Alexei Starovoitov
AppliedQuoted 11 lines · Yonghong Song
Quoted 5 lines · Andrii Nakryiko
Change format string referring to just single argument out of two available. Some versions of libc can reject such format string.
Reported-by Nikita Shirokov <[email protected]>Signed-off-by Andrii Nakryiko <[email protected]>Acked-by Yonghong Song <[email protected]>
Applied. Thanks