[U-Boot] [PATCH 1/2] fs/btrfs: Fix warning in btrfs_check_super()
Tom Rini
trini at konsulko.com
Tue Oct 3 12:45:34 UTC 2017
We specifically say that the last arg is u32, so use %lu.
Signed-off-by: Tom Rini <trini at konsulko.com>
---
fs/btrfs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 706286ee2d85..2529c2b3b6a6 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -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;
--
2.7.4
More information about the U-Boot
mailing list