diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2008-12-20 12:15:14 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-21 11:46:45 +0300 |
commit | 3ddeb912f41801fd1968c7880d031702a396e4d0 (patch) | |
tree | 3a2c34153fc097172820e14bfe9b33bfc563f852 /include/linux/ftrace.h | |
parent | 213cc060797378059a28ebc5c539f3e9a80160bd (diff) | |
download | linux-3ddeb912f41801fd1968c7880d031702a396e4d0.tar.xz |
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); static inline void ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } static inline int -ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 0))); +ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); static inline void tracing_start(void) { } static inline void tracing_stop(void) { } |