Skip to contentSkip to conversation

another blocknumber printk messup

PATCH New Christoph Hellwig 1 participant 1 message Jun 18, 2004 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 another blocknumber printk messup

super.c +3 -2
Index: src/super.c
===================================================================
@@ -1790,8 +1790,9 @@
 				       OCFS2_MINOR_REV_LEVEL);
 		} else if (bh->b_blocknr != le64_to_cpu(di->i_blkno)) {
 			LOG_ERROR_ARGS("bad block number on superblock: "
-				       "found %llu, should be %lu\n",
-				       le64_to_cpu(di->i_blkno), bh->b_blocknr);
+				       "found %llu, should be %llu\n",
+				       le64_to_cpu(di->i_blkno),
+				       (unsigned long long)bh->b_blocknr);
 		} else if (le32_to_cpu(di->id2.i_super.s_clustersize_bits) < 12 ||
 			    le32_to_cpu(di->id2.i_super.s_clustersize_bits) > 20) {
 			LOG_ERROR_ARGS("bad cluster size found: %u\n",