Browse Source

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>
Li Zefan 16 years ago
parent
commit
b78825d608
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/trace/blktrace.c

+ 1 - 1
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)))
 	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 {
 	else {
 		ret = log_action(iter, what2act[what].act[long_act]);
 		ret = log_action(iter, what2act[what].act[long_act]);
 		if (ret)
 		if (ret)