blktrace: fix output of unknown events
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 1 Apr 2009 08:18:53 +0000 (16:18 +0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 12 Apr 2009 13:32:45 +0000 (15:32 +0200)
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>
kernel/trace/blktrace.c

index 921ef5d1f0ba95e7497faa55afb293c50ae7ee47..e45e1af13563edc116e22671f89e7bb8e4fe891e 100644 (file)
@@ -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)