summaryrefslogtreecommitdiff
path: root/blkrawverify.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-02-14 10:22:42 +0100
committerJens Axboe <axboe@suse.de>2006-02-14 10:22:42 +0100
commit4ff24a34c39259181e52edee36106b81759d647d (patch)
tree5b793236f3419f27a3a9ce45719c04178a05096e /blkrawverify.c
parente5413c3cea0ced8c967255f9bf69ca4fe80f3fc2 (diff)
downloadblktrace-4ff24a34c39259181e52edee36106b81759d647d.tar.gz
blktrace-4ff24a34c39259181e52edee36106b81759d647d.tar.bz2
[PATCH] blkrawverify: check and convert data appropriately
Diffstat (limited to 'blkrawverify.c')
-rw-r--r--blkrawverify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/blkrawverify.c b/blkrawverify.c
index dbcdecf..238c3ab 100644
--- a/blkrawverify.c
+++ b/blkrawverify.c
@@ -150,6 +150,9 @@ static int process(FILE *ofp, char *file, unsigned int cpu)
ifp = fopen(file, "r");
while ((n = fread(bit, sizeof(struct blk_io_trace), 1, ifp)) == 1) {
+ if (data_is_native == -1)
+ check_data_endianness(bit->magic);
+
trace_to_cpu(bit);
if (!CHECK_MAGIC(bit)) {