fs/btrfs: Fix warning in btrfs_check_super()
PATCH 1/2 fs/btrfs: Fix warning in btrfs_check_super()
We specifically say that the last arg is u32, so use %lu.
Signed-off-by Tom Rini <[email protected]>
--- fs/btrfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/super.c +1 -1
@@ -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
PATCH 2/2 sandbox: Enable btrfs support
For better test coverage, enable btrfs.
Signed-off-by Tom Rini <[email protected]>
--- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/sandbox_defconfig +1 -0
@@ -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