diff options
Diffstat (limited to 'blkrawverify.c')
-rw-r--r-- | blkrawverify.c | 3 |
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)) { |