History

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 ]

Li Zefan committed 17 years ago

Commit 6e25db41 parent 897f17a1 file · +2 −2Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/trace/ftrace.h+2−2
@@ -209,8 +209,8 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \ · 208 unmodified lines
209 209
210#undef __string210#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)); \