From 570c05898ceb6056f5227214c08b44b6a9278b81 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 23 May 2024 10:48:56 -0700 Subject: [PATCH] Correct endian conversion length (blkno is le64) Trivial correction of wrong bitlength conversion. Signed-off-by: Auke Kok --- utils/src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/src/util.c b/utils/src/util.c index 765103eb..f7acccd0 100644 --- a/utils/src/util.c +++ b/utils/src/util.c @@ -145,7 +145,7 @@ int read_block_verify(int fd, u32 magic, u64 fsid, u64 blkno, int shift, void ** else if (fsid != 0 && le64_to_cpu(hdr->fsid) != fsid) fprintf(stderr, "read blkno %llu has bad fsid %016llx != expected %016llx\n", blkno, le64_to_cpu(hdr->fsid), fsid); - else if (le32_to_cpu(hdr->blkno) != blkno) + else if (le64_to_cpu(hdr->blkno) != blkno) fprintf(stderr, "read blkno %llu has bad blkno %llu != expected %llu\n", blkno, le64_to_cpu(hdr->blkno), blkno); else