summaryrefslogtreecommitdiffstats
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
parenttracing/lock: provide lock_acquired event support for dynamic size string (diff)
downloadlinux-6a74aa40907757ec98d8710ff66cd4cfe064e7d8.tar.xz
linux-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>
-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 @@
#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) \