diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-05-28 23:24:59 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-06-01 23:24:13 -0400 |
commit | 6e25db44a7ad7eb380f4ec774ec00a8fcddea112 (patch) | |
tree | 35531dfe6f96b7883fc3014bbd0239eba616d414 | |
parent | 897f17a65389a26509bd0c79a9812d1c9ea8ea6f (diff) |
tracing/events: fix a typo in __string() format output
"tsize" should be "\tsize". Also remove the space before "__str_loc".
Before:
# cat tracing/events/irq/irq_handler_entry/format
...
field:int irq; offset:12; size:4;
field: __str_loc name; offset:16;tsize:2;
...
After:
# cat tracing/events/irq/irq_handler_entry/format
...
field:int irq; offset:12; size:4;
field:__str_loc name; offset:16; size:2;
...
[ Impact: standardize __string field description in events format file ]
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-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 b4ec83ae711f..9276ec4f34de 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -209,8 +209,8 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \ | |||
209 | 209 | ||
210 | #undef __string | 210 | #undef __string |
211 | #define __string(item, src) \ | 211 | #define __string(item, src) \ |
212 | ret = trace_seq_printf(s, "\tfield: __str_loc " #item ";\t" \ | 212 | ret = trace_seq_printf(s, "\tfield:__str_loc " #item ";\t" \ |
213 | "offset:%u;tsize:%u;\n", \ | 213 | "offset:%u;\tsize:%u;\n", \ |
214 | (unsigned int)offsetof(typeof(field), \ | 214 | (unsigned int)offsetof(typeof(field), \ |
215 | __str_loc_##item), \ | 215 | __str_loc_##item), \ |
216 | (unsigned int)sizeof(field.__str_loc_##item)); \ | 216 | (unsigned int)sizeof(field.__str_loc_##item)); \ |