aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-04-21 18:41:09 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-22 06:30:49 -0400
commit6a74aa40907757ec98d8710ff66cd4cfe064e7d8 (patch)
tree804f0043f9aa684dd00d4a0ef4f950c2da4d6550 /include/trace
parent7e7ca9a22dbbc5c91763cd16923c7509918709b6 (diff)
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>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/ftrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index 5a7d18c43634..a77f71a46dbe 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -123,7 +123,7 @@
123#define TP_printk(fmt, args...) fmt "\n", args 123#define TP_printk(fmt, args...) fmt "\n", args
124 124
125#undef __get_str 125#undef __get_str
126#define __get_str(field) (char *)__entry + __entry->__str_loc_##field 126#define __get_str(field) ((char *)__entry + __entry->__str_loc_##field)
127 127
128#undef TRACE_EVENT 128#undef TRACE_EVENT
129#define TRACE_EVENT(call, proto, args, tstruct, assign, print) \ 129#define TRACE_EVENT(call, proto, args, tstruct, assign, print) \