aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stringify.h
diff options
context:
space:
mode:
authorZhaolei <zhaolei@cn.fujitsu.com>2009-04-08 04:58:57 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-10 09:48:52 -0400
commit8f7c2c37319a81ef4c2bfdec67b1ccd5744d97e4 (patch)
tree809a93fb2683ad3fe1d77ca7c9b894963000533e /include/linux/stringify.h
parent4d1f4372dbea068ba4ee3d98231133a4a4ee15bd (diff)
Make __stringify support variable argument macros too
For example: __stringify(__entry->irq, __entry->ret) will now convert it to: "REC->irq, REC->ret" It also still supports single arguments as the old macro did. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <49DC6751.30308@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/stringify.h')
-rw-r--r--include/linux/stringify.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/stringify.h b/include/linux/stringify.h
index 0b4388356c87..841cec8ed525 100644
--- a/include/linux/stringify.h
+++ b/include/linux/stringify.h
@@ -6,7 +6,7 @@
6 * converts to "bar". 6 * converts to "bar".
7 */ 7 */
8 8
9#define __stringify_1(x) #x 9#define __stringify_1(x...) #x
10#define __stringify(x) __stringify_1(x) 10#define __stringify(x...) __stringify_1(x)
11 11
12#endif /* !__LINUX_STRINGIFY_H */ 12#endif /* !__LINUX_STRINGIFY_H */