diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-02-03 19:05:50 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-04 14:48:39 -0500 |
commit | ae7462b4f1fe1f36b5d562dbd5202a2eba01f072 (patch) | |
tree | ceb9db3c0e90d4a459dac695ca7b2e2fddf70b32 /kernel/trace/trace_output.h | |
parent | d9793bd8018f835c64b10f44e278c86cecb8e932 (diff) |
trace: make the trace_event callbacks return enum print_line_t
As they actually all return these enumerators.
Reported-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_output.h')
-rw-r--r-- | kernel/trace/trace_output.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_output.h b/kernel/trace/trace_output.h index 3aeb31f6506..551a25a7221 100644 --- a/kernel/trace/trace_output.h +++ b/kernel/trace/trace_output.h | |||
@@ -3,7 +3,8 @@ | |||
3 | 3 | ||
4 | #include "trace.h" | 4 | #include "trace.h" |
5 | 5 | ||
6 | typedef int (*trace_print_func)(struct trace_iterator *iter, int flags); | 6 | typedef enum print_line_t (*trace_print_func)(struct trace_iterator *iter, |
7 | int flags); | ||
7 | 8 | ||
8 | struct trace_event { | 9 | struct trace_event { |
9 | struct hlist_node node; | 10 | struct hlist_node node; |
@@ -39,7 +40,7 @@ struct trace_event *ftrace_find_event(int type); | |||
39 | int register_ftrace_event(struct trace_event *event); | 40 | int register_ftrace_event(struct trace_event *event); |
40 | int unregister_ftrace_event(struct trace_event *event); | 41 | int unregister_ftrace_event(struct trace_event *event); |
41 | 42 | ||
42 | int trace_nop_print(struct trace_iterator *iter, int flags); | 43 | enum print_line_t trace_nop_print(struct trace_iterator *iter, int flags); |
43 | 44 | ||
44 | #define MAX_MEMHEX_BYTES 8 | 45 | #define MAX_MEMHEX_BYTES 8 |
45 | #define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1) | 46 | #define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1) |