Skip to content

Commit

Permalink
ocfs2: Fix metaecc error messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sunil Mushran authored and Tao Ma committed Sep 8, 2010
1 parent 2bfc96a commit dc696ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/ocfs2/blockcheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ int ocfs2_block_check_validate(void *data, size_t blocksize,

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

/* Ok, try ECC fixups */
Expand All @@ -453,7 +453,7 @@ int ocfs2_block_check_validate(void *data, size_t blocksize,
goto out;
}

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

rc = -EIO;
Expand Down

0 comments on commit dc696ac

Please sign in to comment.