Skip to content

Commit

Permalink
blktrace: fix t_error()
Browse files Browse the repository at this point in the history
Impact: fix error flag output

t_error() should return t->error but not t->sector.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <49C8945F.5020802@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Mar 24, 2009
1 parent 6579634 commit e0dc81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ static inline unsigned long long t_sector(const struct trace_entry *ent)

static inline __u16 t_error(const struct trace_entry *ent)
{
return te_blk_io_trace(ent)->sector;
return te_blk_io_trace(ent)->error;
}

static __u64 get_pdu_int(const struct trace_entry *ent)
Expand Down

0 comments on commit e0dc81b

Please sign in to comment.