summaryrefslogtreecommitdiff
path: root/include/trace/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/ftrace.h')
-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) \