aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2024-02-20 20:45:37 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-02-23 14:59:40 -0800
commit4ecb90c2e32fe5f9509e4ecdb7000a98ed2897bc (patch)
treea7523de865153fc26d063c36128d960b53eb2ecb
parent71855932e742d61b8c755760b8b57a674e97fb63 (diff)
downloadf2fs-tools-4ecb90c2e32fe5f9509e4ecdb7000a98ed2897bc.tar.gz
f2fs-tools: print hexadecimal number in log
Otherwise, it will waste time to convert for comparison. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fsck/fsck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fsck/fsck.c b/fsck/fsck.c
index 14a9628..a42b597 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -1253,8 +1253,8 @@ check:
}
if (i_blocks != *blk_cnt) {
- ASSERT_MSG("ino: 0x%x has i_blocks: %08"PRIx64", "
- "but has %u blocks",
+ ASSERT_MSG("ino: 0x%x has i_blocks: 0x%08"PRIx64", "
+ "but has 0x%x blocks",
nid, i_blocks, *blk_cnt);
if (c.fix_on) {
node_blk->i.i_blocks = cpu_to_le64(*blk_cnt);