aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2008-12-20 04:15:14 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-21 03:46:45 -0500
commit3ddeb912f41801fd1968c7880d031702a396e4d0 (patch)
tree3a2c34153fc097172820e14bfe9b33bfc563f852 /include/linux/ftrace.h
parent213cc060797378059a28ebc5c539f3e9a80160bd (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.h2
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);
303static inline void 303static inline void
304ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } 304ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { }
305static inline int 305static inline int
306ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 0))); 306ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
307 307
308static inline void tracing_start(void) { } 308static inline void tracing_start(void) { }
309static inline void tracing_stop(void) { } 309static inline void tracing_stop(void) { }