diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2008-12-20 04:15:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-21 03:46:45 -0500 |
commit | 3ddeb912f41801fd1968c7880d031702a396e4d0 (patch) | |
tree | 3a2c34153fc097172820e14bfe9b33bfc563f852 /include/linux/ftrace.h | |
parent | 213cc060797378059a28ebc5c539f3e9a80160bd (diff) |
ftrace: enable format arguments checking
Impact: broaden gcc printf format checks for ftrace_printk()
format arguments checking for ftrace_printk() is __printf(1, 2),
not __printf(1, 0).
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 04b52e6ebc66..677432b9cb7e 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -303,7 +303,7 @@ extern void ftrace_dump(void); | |||
303 | static inline void | 303 | static inline void |
304 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } | 304 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } |
305 | static inline int | 305 | static inline int |
306 | ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 0))); | 306 | ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); |
307 | 307 | ||
308 | static inline void tracing_start(void) { } | 308 | static inline void tracing_start(void) { } |
309 | static inline void tracing_stop(void) { } | 309 | static inline void tracing_stop(void) { } |