Skip to contentSkip to conversation

fs/btrfs: Fix warning in btrfs_check_super()

PATCH New Tom Rini 1 participant 2 messages Oct 3, 2017 Btrfs file system

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/2 fs/btrfs: Fix warning in btrfs_check_super()

We specifically say that the last arg is u32, so use %lu.

---
 fs/btrfs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/super.c +1 -1
index 706286ee2d85..2529c2b3b6a6 100644
@@ -147,7 +147,7 @@ static int btrfs_check_super(struct btrfs_super_block *sb)
 
 	if (sb->sys_chunk_array_size < sizeof(struct btrfs_key) +
 	    sizeof(struct btrfs_chunk)) {
-		printf("%s: system chunk array too small %u < %u\n", __func__,
+		printf("%s: system chunk array too small %u < %lu\n", __func__,
 		       sb->sys_chunk_array_size, (u32) sizeof(struct btrfs_key)
 		       + sizeof(struct btrfs_chunk));
 		ret = -1;
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 2/2 sandbox: Enable btrfs support

For better test coverage, enable btrfs.

---
 configs/sandbox_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/sandbox_defconfig +1 -0
index 632e0aa0ee35..891322b65cb4 100644
@@ -60,6 +60,7 @@ CONFIG_CMD_PMIC=y
 CONFIG_CMD_REGULATOR=y
 CONFIG_CMD_TPM=y
 CONFIG_CMD_TPM_TEST=y
+CONFIG_CMD_BTRFS=y
 CONFIG_CMD_CBFS=y
 CONFIG_CMD_CRAMFS=y
 CONFIG_CMD_EXT4_WRITE=y
Signature · 1 line
2.7.4