mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
8f7c2c3731
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>
12 lines
341 B
C
12 lines
341 B
C
#ifndef __LINUX_STRINGIFY_H
|
|
#define __LINUX_STRINGIFY_H
|
|
|
|
/* Indirect stringification. Doing two levels allows the parameter to be a
|
|
* macro itself. For example, compile with -DFOO=bar, __stringify(FOO)
|
|
* converts to "bar".
|
|
*/
|
|
|
|
#define __stringify_1(x...) #x
|
|
#define __stringify(x...) __stringify_1(x)
|
|
|
|
#endif /* !__LINUX_STRINGIFY_H */
|