提交 f39bfec2 编写于 作者: T Tom Rini

fs: btrfs: Fix printf format character warning

When printing a size_t value we need to use %zu for portability between
32bit and 64bit targets.
Signed-off-by: NTom Rini <trini@konsulko.com>
Reviewed-by: NMarek Behun <marek.behun@nic.cz>
上级 c5e6e9b3
......@@ -147,8 +147,8 @@ 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 < %lu\n", __func__,
sb->sys_chunk_array_size, (u32) sizeof(struct btrfs_key)
printf("%s: system chunk array too small %u < %zu\n", __func__,
sb->sys_chunk_array_size, sizeof(struct btrfs_key)
+ sizeof(struct btrfs_chunk));
ret = -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册