diff options
Diffstat (limited to 'tools/bpf/bpftool/json_writer.c')
-rw-r--r-- | tools/bpf/bpftool/json_writer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/bpf/bpftool/json_writer.c b/tools/bpf/bpftool/json_writer.c index 6046dcab51cc..86501cd3c763 100644 --- a/tools/bpf/bpftool/json_writer.c +++ b/tools/bpf/bpftool/json_writer.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <malloc.h> | 15 | #include <malloc.h> |
16 | #include <inttypes.h> | 16 | #include <inttypes.h> |
17 | #include <stdint.h> | 17 | #include <stdint.h> |
18 | #include <linux/compiler.h> | ||
19 | 18 | ||
20 | #include "json_writer.h" | 19 | #include "json_writer.h" |
21 | 20 | ||
@@ -153,8 +152,7 @@ void jsonw_name(json_writer_t *self, const char *name) | |||
153 | putc(' ', self->out); | 152 | putc(' ', self->out); |
154 | } | 153 | } |
155 | 154 | ||
156 | void __printf(2, 0) | 155 | void jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap) |
157 | jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap) | ||
158 | { | 156 | { |
159 | jsonw_eor(self); | 157 | jsonw_eor(self); |
160 | putc('"', self->out); | 158 | putc('"', self->out); |
@@ -162,7 +160,7 @@ jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap) | |||
162 | putc('"', self->out); | 160 | putc('"', self->out); |
163 | } | 161 | } |
164 | 162 | ||
165 | void __printf(2, 3) jsonw_printf(json_writer_t *self, const char *fmt, ...) | 163 | void jsonw_printf(json_writer_t *self, const char *fmt, ...) |
166 | { | 164 | { |
167 | va_list ap; | 165 | va_list ap; |
168 | 166 | ||