btrfs: format checksums according to type for printing
authorJohannes Thumshirn <jthumshirn@suse.de>
Mon, 3 Jun 2019 14:58:52 +0000 (16:58 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:35:01 +0000 (13:35 +0200)
commit7ebc7e5f2c81f658b1d2f95fcde15dfd1a84b370
treed1c075ac13ba330310270e2b389563ab05fda9f1
parent10fe6ca80d9d25eca9fd6d98eccf6c795532fe96
btrfs: format checksums according to type for printing

Add a small helper for btrfs_print_data_csum_error() which formats the
checksum according to it's type for pretty printing.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
[ shorten macro name ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h