File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -649,16 +649,15 @@ static int btree_readpage_end_io_hook(struct btrfs_io_bio *io_bio,
649
649
goto err ;
650
650
651
651
if (memcmp_extent_buffer (eb , result , 0 , csum_size )) {
652
- u32 val ;
653
- u32 found = 0 ;
654
-
655
- memcpy (& found , result , csum_size );
652
+ u8 val [BTRFS_CSUM_SIZE ] = { 0 };
656
653
657
654
read_extent_buffer (eb , & val , 0 , csum_size );
658
655
btrfs_warn_rl (fs_info ,
659
- "%s checksum verify failed on %llu wanted %x found %x level %d" ,
656
+ "%s checksum verify failed on %llu wanted " CSUM_FMT " found " CSUM_FMT " level %d" ,
660
657
fs_info -> sb -> s_id , eb -> start ,
661
- val , found , btrfs_header_level (eb ));
658
+ CSUM_FMT_VALUE (csum_size , val ),
659
+ CSUM_FMT_VALUE (csum_size , result ),
660
+ btrfs_header_level (eb ));
662
661
ret = - EUCLEAN ;
663
662
goto err ;
664
663
}
You can’t perform that action at this time.
0 commit comments