tracing/events: fix a typo in __string() format output
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 29 May 2009 03:24:59 +0000 (11:24 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jun 2009 03:24:13 +0000 (23:24 -0400)
"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>
include/trace/ftrace.h

index b4ec83ae711fe733f988791529347c9bb1fd6bc5..9276ec4f34de0c9bb66abdb0ea54f0b0a7791ff9 100644 (file)
@@ -209,8 +209,8 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags)    \
 
 #undef __string
 #define __string(item, src)                                                   \
-       ret = trace_seq_printf(s, "\tfield: __str_loc " #item ";\t"            \
-                              "offset:%u;tsize:%u;\n",                        \
+       ret = trace_seq_printf(s, "\tfield:__str_loc " #item ";\t"             \
+                              "offset:%u;\tsize:%u;\n",                       \
                               (unsigned int)offsetof(typeof(field),           \
                                        __str_loc_##item),                     \
                               (unsigned int)sizeof(field.__str_loc_##item));  \