diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-01-15 20:50:54 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-16 06:17:29 -0500 |
commit | c37abc5515b5ed5b1d2134d2deaead492d9f92a2 (patch) | |
tree | 7d60a9aacebe4d49eeba8aaff9e827b2cef67bc3 /kernel/trace/trace_output.h | |
parent | bb3c3c95f330f7bf16e33b002e48882616089db1 (diff) |
trace: add gcc printf check to trace_seq_printf
Andrew Morton suggested adding a printf checker to trace_seq_printf
since there are a number of users that have improper format arguments.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_output.h')
-rw-r--r-- | kernel/trace/trace_output.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace_output.h b/kernel/trace/trace_output.h index b2c14615e0cd..1cbab5e3dc99 100644 --- a/kernel/trace/trace_output.h +++ b/kernel/trace/trace_output.h | |||
@@ -16,7 +16,8 @@ struct trace_event { | |||
16 | trace_print_func binary; | 16 | trace_print_func binary; |
17 | }; | 17 | }; |
18 | 18 | ||
19 | extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...); | 19 | extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...) |
20 | __attribute__ ((format (printf, 2, 3))); | ||
20 | extern int | 21 | extern int |
21 | seq_print_ip_sym(struct trace_seq *s, unsigned long ip, | 22 | seq_print_ip_sym(struct trace_seq *s, unsigned long ip, |
22 | unsigned long sym_flags); | 23 | unsigned long sym_flags); |