Skip to contentSkip to conversation

blktrace: Use be32_to_cpu for blk_io_trace->cpu.

PATCH Superseded Tao Ma 1 participant 1 message May 25, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tao Ma

author
#0 lore raw

PATCH 1/1 blktrace: Use be32_to_cpu for blk_io_trace->cpu.

From: taoma <taoma@taoma-laptop2.(none)>

blk_io_trace->cpu is u32, so use be32_to_cpu instead.

Cc Jens Axboe <[email protected]>
---
 blktrace.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
blktrace.h +1 -1
index 816ce61..8b3e031 100644
@@ -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);
 }
Signature · 1 line
1.7.1