summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-04-22 00:41:09 +0200
committerIngo Molnar <mingo@elte.hu>2009-04-22 12:30:49 +0200
commit6a74aa40907757ec98d8710ff66cd4cfe064e7d8 (patch)
tree804f0043f9aa684dd00d4a0ef4f950c2da4d6550 /include/trace
parent7e7ca9a22dbbc5c91763cd16923c7509918709b6 (diff)
downloadlinux-3.10-6a74aa40907757ec98d8710ff66cd4cfe064e7d8.tar.gz
linux-3.10-6a74aa40907757ec98d8710ff66cd4cfe064e7d8.tar.bz2
linux-3.10-6a74aa40907757ec98d8710ff66cd4cfe064e7d8.zip
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 5a7d18c4363..a77f71a46db 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -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) \