Skip to content

Commit cf31b27

Browse files
adam900710kdave
authored andcommitted
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 <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 14114c9 commit cf31b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/disk-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2347,7 +2347,7 @@ int btrfs_validate_super(const struct btrfs_fs_info *fs_info,
23472347
ret = -EINVAL;
23482348
}
23492349
if (btrfs_super_flags(sb) & ~BTRFS_SUPER_FLAG_SUPP) {
2350-
btrfs_err(fs_info, "unrecognized or unsupported super flag: %llu",
2350+
btrfs_err(fs_info, "unrecognized or unsupported super flag: 0x%llx",
23512351
btrfs_super_flags(sb) & ~BTRFS_SUPER_FLAG_SUPP);
23522352
ret = -EINVAL;
23532353
}

0 commit comments

Comments
 (0)