[PATCH] Work-around for 32-bit be64_to_cpu() weirdness
authorJens Axboe <axboe@suse.de>
Tue, 10 Jan 2006 20:51:34 +0000 (21:51 +0100)
committerJens Axboe <axboe@suse.de>
Tue, 10 Jan 2006 20:51:34 +0000 (21:51 +0100)
blkparse_fmt.c

index 34b920b2256de9caf6250444f08fc10c780edcf7..811f4b0b9403e5c604d49d9b291a9fdd4e3ee657 100644 (file)
@@ -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,