diff options
author | Nathan Scott <nathans@sgi.com> | 2005-09-06 08:05:07 +0200 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2005-09-06 08:05:07 +0200 |
commit | fd613fc20b171bc9adc8f130abbed9c1199259f9 (patch) | |
tree | 4f86e65c998cb390f1f25d0c3319ee8315eab049 /blktrace.h | |
parent | 1f79c4a01e9bd3261529c83bc41e86e40c4321e5 (diff) | |
download | blktrace-fd613fc20b171bc9adc8f130abbed9c1199259f9.tar.gz blktrace-fd613fc20b171bc9adc8f130abbed9c1199259f9.tar.bz2 |
[PATCH] Missing ->cpu endianness conversion
Diffstat (limited to 'blktrace.h')
-rw-r--r-- | blktrace.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -51,6 +51,7 @@ static inline void trace_to_be(struct blk_io_trace *t) t->bytes = cpu_to_be32(t->bytes); t->action = cpu_to_be32(t->action); t->pid = cpu_to_be32(t->pid); + t->cpu = cpu_to_be16(t->cpu); t->error = cpu_to_be16(t->error); t->pdu_len = cpu_to_be16(t->pdu_len); } @@ -64,6 +65,7 @@ static inline void trace_to_cpu(struct blk_io_trace *t) t->bytes = be32_to_cpu(t->bytes); t->action = be32_to_cpu(t->action); t->pid = be32_to_cpu(t->pid); + t->cpu = be16_to_cpu(t->cpu); t->error = be16_to_cpu(t->error); t->pdu_len = be16_to_cpu(t->pdu_len); } |