Commit 7c43e0d6 authored by Andrii Nakryiko's avatar Andrii Nakryiko Committed by Alexei Starovoitov

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: default avatarNikita Shirokov <tehnerd@tehnerd.com>
Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20191218214314.2403729-1-andriin@fb.com
parent 58d8dc2a
...@@ -567,9 +567,9 @@ static int do_skeleton(int argc, char **argv) ...@@ -567,9 +567,9 @@ static int do_skeleton(int argc, char **argv)
return -1; \n\ return -1; \n\
} \n\ } \n\
\n\ \n\
#endif /* %2$s */ \n\ #endif /* %s */ \n\
", ",
obj_name, header_guard); header_guard);
err = 0; err = 0;
out: out:
bpf_object__close(obj); bpf_object__close(obj);
......
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