From 4ff24a34c39259181e52edee36106b81759d647d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 14 Feb 2006 10:22:42 +0100 Subject: [PATCH] [PATCH] blkrawverify: check and convert data appropriately --- blkrawverify.c | 3 +++ 1 file changed, 3 insertions(+) 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)) { -- 2.25.1