]> www.infradead.org Git - users/hch/configfs.git/commitdiff
btrfs: output the unrecognized super block flags as hex
authorQu Wenruo <wqu@suse.com>
Fri, 14 Jun 2024 04:22:29 +0000 (13:52 +0930)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:29 +0000 (15:33 +0200)
Most of the extra super block flags are beyond 32bits (from
CHANGING_FSID_V2 to CHANGING_*_CSUMS), thus using %llu is not only too
long and pretty hard to read.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c

index 0fd248292d28533e94cf72084ce2fec9a75038b7..686eec119eb4cf5f25d1224b29cbbc2d26ec7fa1 100644 (file)
@@ -2347,7 +2347,7 @@ int btrfs_validate_super(const struct btrfs_fs_info *fs_info,
                ret = -EINVAL;
        }
        if (btrfs_super_flags(sb) & ~BTRFS_SUPER_FLAG_SUPP) {
-               btrfs_err(fs_info, "unrecognized or unsupported super flag: %llu",
+               btrfs_err(fs_info, "unrecognized or unsupported super flag: 0x%llx",
                                btrfs_super_flags(sb) & ~BTRFS_SUPER_FLAG_SUPP);
                ret = -EINVAL;
        }