projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf9780
)
[PATCH] Work-around for 32-bit be64_to_cpu() weirdness
author
Jens Axboe
<axboe@suse.de>
Tue, 10 Jan 2006 20:51:34 +0000
(21:51 +0100)
committer
Jens Axboe
<axboe@suse.de>
Tue, 10 Jan 2006 20:51:34 +0000
(21:51 +0100)
blkparse_fmt.c
patch
|
blob
|
blame
|
history
diff --git
a/blkparse_fmt.c
b/blkparse_fmt.c
index 34b920b2256de9caf6250444f08fc10c780edcf7..811f4b0b9403e5c604d49d9b291a9fdd4e3ee657 100644
(file)
--- a/
blkparse_fmt.c
+++ b/
blkparse_fmt.c
@@
-126,9
+126,10
@@
static unsigned int get_pdu_int(struct blk_io_trace *t)
static void get_pdu_remap(struct blk_io_trace *t, struct blk_io_trace_remap *r)
{
struct blk_io_trace_remap *__r = pdu_start(t);
+ __u64 sector = __r->sector;
r->device = be32_to_cpu(__r->device);
- r->sector = be64_to_cpu(
__r->
sector);
+ r->sector = be64_to_cpu(sector);
}
static void print_field(char *act, struct per_cpu_info *pci,