diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-03-10 13:12:58 -0400 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-10 13:12:58 -0400 |
commit | 0e3d0f0566f3fcf664782f597070bbc669d78454 (patch) | |
tree | 11ce48020cc45e8e168c7bd89a88b55a6bbefaed /kernel/trace/trace_events_stage_2.h | |
parent | 823f9124fb2e33eeb624d139978a52089f8a02ae (diff) |
tracing: update comments to match event code macros
Impact: clean up / comments
The comments that described the ftrace macros to manipulate the
TRACE_EVENT and TRACE_FORMAT macros no longer match the code.
This patch updates them.
Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace_events_stage_2.h')
-rw-r--r-- | kernel/trace/trace_events_stage_2.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/trace/trace_events_stage_2.h b/kernel/trace/trace_events_stage_2.h index 1ad9f8d2fe4..ca347afd6aa 100644 --- a/kernel/trace/trace_events_stage_2.h +++ b/kernel/trace/trace_events_stage_2.h @@ -20,7 +20,7 @@ * * field = (typeof(field))entry; * - * ret = trace_seq_printf(s, <TP_RAW_FMT> "%s", <ARGS> "\n"); + * ret = trace_seq_printf(s, <TP_printk> "\n"); * if (!ret) * return TRACE_TYPE_PARTIAL_LINE; * @@ -76,10 +76,9 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \ * int ret; * * ret = trace_seq_printf(s, #type " " #item ";" - * " size:%d; offset:%d;\n", - * sizeof(field.type), - * offsetof(struct ftrace_raw_##call, - * item)); + * " offset:%u; size:%u;\n", + * offsetof(struct ftrace_raw_##call, item), + * sizeof(field.type)); * * } */ |