diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-04-01 16:18:53 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-12 15:32:45 +0200 |
commit | b78825d608f30a47e3154ab6872a03f0de0c9d45 (patch) | |
tree | a20ac6c33f67749466fe21ebc8edf8e3c139f579 | |
parent | fc182a4330fc22ea1b68fa3d5064dd85a73a4c4a (diff) | |
download | linux-b78825d608f30a47e3154ab6872a03f0de0c9d45.tar.bz2 |
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>
-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, } if (unlikely(what == 0 || what >= ARRAY_SIZE(what2act))) - ret = trace_seq_printf(s, "Bad pc action %x\n", what); + ret = trace_seq_printf(s, "Unknown action %x\n", what); else { ret = log_action(iter, what2act[what].act[long_act]); if (ret) |