[PATCH] Label kthread_create() with printf attribute tag.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Sunday, April 20, 2008 - 4:35 pm

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 include/linux/kthread.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -r 9b5082037972 include/linux/kthread.h
--- a/include/linux/kthread.h	Mon Apr 07 17:06:45 2008 +1000
+++ b/include/linux/kthread.h	Mon Apr 07 17:07:09 2008 +1000
@@ -6,7 +6,8 @@
 
 struct task_struct *kthread_create(int (*threadfn)(void *data),
 				   void *data,
-				   const char namefmt[], ...);
+				   const char namefmt[], ...)
+	__attribute__((format(printf, 3, 4)));
 
 /**
  * kthread_run - create and wake a thread.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Label kthread_create() with printf attribute tag., Rusty Russell, (Sun Apr 20, 4:35 pm)