Skip to content

Commit

Permalink
trace: add gcc printf check to trace_seq_printf
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Jan 16, 2009
1 parent bb3c3c9 commit c37abc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/trace/trace_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ struct trace_event {
trace_print_func binary;
};

extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...);
extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...)
__attribute__ ((format (printf, 2, 3)));
extern int
seq_print_ip_sym(struct trace_seq *s, unsigned long ip,
unsigned long sym_flags);
Expand Down

0 comments on commit c37abc5

Please sign in to comment.