]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs: btrfs: Fix printf format character warning
authorTom Rini <trini@konsulko.com>
Sat, 27 Jan 2018 22:23:21 +0000 (17:23 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jan 2018 17:50:08 +0000 (12:50 -0500)
When printing a size_t value we need to use %zu for portability between
32bit and 64bit targets.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Marek Behun <marek.behun@nic.cz>
fs/btrfs/super.c

index 2529c2b3b6a67edf22dd728defc56db01eb7b5a8..7e2528c4fb6f1dff007ee25aa05e0b9787b87ddb 100644 (file)
@@ -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;
        }