Skip to content

Commit dc696ac

Browse files
Sunil MushranTao Ma
Sunil Mushran
authored and
Tao Ma
committed
ocfs2: Fix metaecc error messages
Like tools, the checksum validate function now prints the values in hex. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Singed-off-by: Tao Ma <tao.ma@oracle.com>
1 parent 2bfc96a commit dc696ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/ocfs2/blockcheck.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ int ocfs2_block_check_validate(void *data, size_t blocksize,
439439

440440
ocfs2_blockcheck_inc_failure(stats);
441441
mlog(ML_ERROR,
442-
"CRC32 failed: stored: %u, computed %u. Applying ECC.\n",
442+
"CRC32 failed: stored: 0x%x, computed 0x%x. Applying ECC.\n",
443443
(unsigned int)check.bc_crc32e, (unsigned int)crc);
444444

445445
/* Ok, try ECC fixups */
@@ -453,7 +453,7 @@ int ocfs2_block_check_validate(void *data, size_t blocksize,
453453
goto out;
454454
}
455455

456-
mlog(ML_ERROR, "Fixed CRC32 failed: stored: %u, computed %u\n",
456+
mlog(ML_ERROR, "Fixed CRC32 failed: stored: 0x%x, computed 0x%x\n",
457457
(unsigned int)check.bc_crc32e, (unsigned int)crc);
458458

459459
rc = -EIO;

0 commit comments

Comments
 (0)