diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-05-26 21:11:09 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-26 21:11:09 +0200 |
commit | 8e8bb835e375bd8cf0f01debff61f6bf467bb1ed (patch) | |
tree | ea606055191a982ba7ef73a4b34e12b916ba504f | |
parent | 13d4859277102703a7ba1d64c2f5f8560eea5568 (diff) | |
download | blktrace-8e8bb835e375bd8cf0f01debff61f6bf467bb1ed.tar.gz blktrace-8e8bb835e375bd8cf0f01debff61f6bf467bb1ed.tar.bz2 |
blktrace: Use be32_to_cpu for blk_io_trace->cpu.
blk_io_trace->cpu is u32, so use be32_to_cpu instead.
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r-- | blktrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -110,7 +110,7 @@ static inline void trace_to_cpu(struct blk_io_trace *t) t->action = be32_to_cpu(t->action); t->pid = be32_to_cpu(t->pid); t->device = be32_to_cpu(t->device); - t->cpu = be16_to_cpu(t->cpu); + t->cpu = be32_to_cpu(t->cpu); t->error = be16_to_cpu(t->error); t->pdu_len = be16_to_cpu(t->pdu_len); } |