summaryrefslogtreecommitdiff
path: root/blkparse_fmt.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-01-10 21:51:34 +0100
committerJens Axboe <axboe@suse.de>2006-01-10 21:51:34 +0100
commit663af81986ad392529b4d0d17e1ef43a9877db82 (patch)
treeecff9a0ab8cf289c9c27938f8c5781f10ff8d525 /blkparse_fmt.c
parentfdf9780fa74eda26dee83223e7e7534fc6d2a693 (diff)
downloadblktrace-663af81986ad392529b4d0d17e1ef43a9877db82.tar.gz
blktrace-663af81986ad392529b4d0d17e1ef43a9877db82.tar.bz2
[PATCH] Work-around for 32-bit be64_to_cpu() weirdness
Diffstat (limited to 'blkparse_fmt.c')
-rw-r--r--blkparse_fmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/blkparse_fmt.c b/blkparse_fmt.c
index 34b920b..811f4b0 100644
--- 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,