From: Lai Jiangshan Date: Sat, 20 Dec 2008 09:15:14 +0000 (+0800) Subject: ftrace: enable format arguments checking X-Git-Tag: v2.6.29-rc1~586^2^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3ddeb912f41801fd1968c7880d031702a396e4d0;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Ingo Molnar --- diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 04b52e6ebc6..677432b9cb7 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) { }