diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-04-01 04:18:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-12 09:32:45 -0400 |
commit | b78825d608f30a47e3154ab6872a03f0de0c9d45 (patch) | |
tree | a20ac6c33f67749466fe21ebc8edf8e3c139f579 /kernel/trace/blktrace.c | |
parent | fc182a4330fc22ea1b68fa3d5064dd85a73a4c4a (diff) |
blktrace: fix output of unknown events
Not all events are pc (packet command) events. An event is a pc
event only if it has BLK_TC_PC bit set.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <49D3236D.3090705@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/blktrace.c')
-rw-r--r-- | kernel/trace/blktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index 921ef5d1f0ba..e45e1af13563 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c | |||
@@ -1182,7 +1182,7 @@ static enum print_line_t print_one_line(struct trace_iterator *iter, | |||
1182 | } | 1182 | } |
1183 | 1183 | ||
1184 | if (unlikely(what == 0 || what >= ARRAY_SIZE(what2act))) | 1184 | if (unlikely(what == 0 || what >= ARRAY_SIZE(what2act))) |
1185 | ret = trace_seq_printf(s, "Bad pc action %x\n", what); | 1185 | ret = trace_seq_printf(s, "Unknown action %x\n", what); |
1186 | else { | 1186 | else { |
1187 | ret = log_action(iter, what2act[what].act[long_act]); | 1187 | ret = log_action(iter, what2act[what].act[long_act]); |
1188 | if (ret) | 1188 | if (ret) |