From: Qu Wenruo Date: Fri, 14 Jun 2024 04:22:29 +0000 (+0930) Subject: btrfs: output the unrecognized super block flags as hex X-Git-Tag: v6.11-rc1~157^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf31b271e0a65fadb675a6cec433e08ab636f36d;p=thirdparty%2Flinux.git btrfs: output the unrecognized super block flags as hex 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 Signed-off-by: Qu Wenruo Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 0fd248292d285..686eec119eb4c 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -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; }