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 /block | |
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 'block')
-rw-r--r-- | block/blktrace.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/block/blktrace.c b/block/blktrace.c index 12df27693972..c7698d1617a1 100644 --- a/block/blktrace.c +++ b/block/blktrace.c | |||
@@ -1158,7 +1158,8 @@ static struct { | |||
1158 | [__BLK_TA_REMAP] = {{ "A", "remap" }, blk_log_remap }, | 1158 | [__BLK_TA_REMAP] = {{ "A", "remap" }, blk_log_remap }, |
1159 | }; | 1159 | }; |
1160 | 1160 | ||
1161 | static int blk_trace_event_print(struct trace_iterator *iter, int flags) | 1161 | static enum print_line_t blk_trace_event_print(struct trace_iterator *iter, |
1162 | int flags) | ||
1162 | { | 1163 | { |
1163 | struct trace_seq *s = &iter->seq; | 1164 | struct trace_seq *s = &iter->seq; |
1164 | const struct blk_io_trace *t = (struct blk_io_trace *)iter->ent; | 1165 | const struct blk_io_trace *t = (struct blk_io_trace *)iter->ent; |
@@ -1196,7 +1197,8 @@ static int blk_trace_synthesize_old_trace(struct trace_iterator *iter) | |||
1196 | sizeof(old) - offset + t->pdu_len); | 1197 | sizeof(old) - offset + t->pdu_len); |
1197 | } | 1198 | } |
1198 | 1199 | ||
1199 | static int blk_trace_event_print_binary(struct trace_iterator *iter, int flags) | 1200 | static enum print_line_t |
1201 | blk_trace_event_print_binary(struct trace_iterator *iter, int flags) | ||
1200 | { | 1202 | { |
1201 | return blk_trace_synthesize_old_trace(iter) ? | 1203 | return blk_trace_synthesize_old_trace(iter) ? |
1202 | TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; | 1204 | TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; |