From: Zhaolei Date: Wed, 8 Apr 2009 08:58:57 +0000 (+0800) Subject: Make __stringify support variable argument macros too X-Git-Tag: v3.0~9581^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f7c2c37319a81ef4c2bfdec67b1ccd5744d97e4;p=platform%2Fkernel%2Flinux-amlogic.git 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 Acked-by: Frederic Weisbecker Cc: Steven Rostedt LKML-Reference: <49DC6751.30308@cn.fujitsu.com> Signed-off-by: Ingo Molnar --- diff --git a/include/linux/stringify.h b/include/linux/stringify.h index 0b43883..841cec8 100644 --- a/include/linux/stringify.h +++ b/include/linux/stringify.h @@ -6,7 +6,7 @@ * converts to "bar". */ -#define __stringify_1(x) #x -#define __stringify(x) __stringify_1(x) +#define __stringify_1(x...) #x +#define __stringify(x...) __stringify_1(x) #endif /* !__LINUX_STRINGIFY_H */