diff options
author | Andrii Nakryiko | 2019-12-18 13:43:14 -0800 |
---|---|---|
committer | Alexei Starovoitov | 2019-12-18 17:02:16 -0800 |
commit | 7c43e0d6a526e7734eb854fe242886f52ccd06ac (patch) | |
tree | eb73ce6b3cb7db5fa8d46b9243e4098329df9408 | |
parent | 58d8dc2a98f50d4741a49e047bd7b322d7692d0b (diff) |
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 <tehnerd@tehnerd.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20191218214314.2403729-1-andriin@fb.com
-rw-r--r-- | tools/bpf/bpftool/gen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/gen.c b/tools/bpf/bpftool/gen.c index 8d93c8f90f82..851c465f99dc 100644 --- a/tools/bpf/bpftool/gen.c +++ b/tools/bpf/bpftool/gen.c @@ -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); |