diff options
Diffstat (limited to 'include/trace/ftrace.h')
-rw-r--r-- | include/trace/ftrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 1867553c61e5..cc78943e0038 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -120,7 +120,7 @@ | |||
120 | 120 | ||
121 | #undef __dynamic_array | 121 | #undef __dynamic_array |
122 | #define __dynamic_array(type, item, len) \ | 122 | #define __dynamic_array(type, item, len) \ |
123 | ret = trace_seq_printf(s, "\tfield:__data_loc " #item ";\t" \ | 123 | ret = trace_seq_printf(s, "\tfield:__data_loc " #type "[] " #item ";\t"\ |
124 | "offset:%u;\tsize:%u;\n", \ | 124 | "offset:%u;\tsize:%u;\n", \ |
125 | (unsigned int)offsetof(typeof(field), \ | 125 | (unsigned int)offsetof(typeof(field), \ |
126 | __data_loc_##item), \ | 126 | __data_loc_##item), \ |
@@ -279,7 +279,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \ | |||
279 | 279 | ||
280 | #undef __dynamic_array | 280 | #undef __dynamic_array |
281 | #define __dynamic_array(type, item, len) \ | 281 | #define __dynamic_array(type, item, len) \ |
282 | ret = trace_define_field(event_call, "__data_loc" "[" #type "]", #item,\ | 282 | ret = trace_define_field(event_call, "__data_loc " #type "[]", #item, \ |
283 | offsetof(typeof(field), __data_loc_##item), \ | 283 | offsetof(typeof(field), __data_loc_##item), \ |
284 | sizeof(field.__data_loc_##item), 0); | 284 | sizeof(field.__data_loc_##item), 0); |
285 | 285 | ||