2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 18:23:53 +08:00

tracing/events: protect __get_str()

The __get_str() macro is used in a code part then its content should be
protected with parenthesis.

[ Impact: make macro definition more robust ]

Reported-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
This commit is contained in:
Frederic Weisbecker 2009-04-22 00:41:09 +02:00 committed by Ingo Molnar
parent 7e7ca9a22d
commit 6a74aa4090

View File

@ -123,7 +123,7 @@
#define TP_printk(fmt, args...) fmt "\n", args
#undef __get_str
#define __get_str(field) (char *)__entry + __entry->__str_loc_##field
#define __get_str(field) ((char *)__entry + __entry->__str_loc_##field)
#undef TRACE_EVENT
#define TRACE_EVENT(call, proto, args, tstruct, assign, print) \