Fix 32bit build.

Reported by:	emaste
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2017-09-22 16:42:41 +00:00
parent 3f04d8c304
commit 55e5a5c1f4

@ -2615,8 +2615,8 @@ ffs_getcg(fs, devvp, cg, bpp, cgpp)
(bp->b_flags & B_CKHASH) != 0 &&
cgp->cg_ckhash != bp->b_ckhash) ||
!cg_chkmagic(cgp) || cgp->cg_cgx != cg) {
printf("checksum failed: cg %u, cgp: 0x%x != bp: 0x%lx\n",
cg, cgp->cg_ckhash, bp->b_ckhash);
printf("checksum failed: cg %u, cgp: 0x%x != bp: 0x%jx\n",
cg, cgp->cg_ckhash, (uintmax_t)bp->b_ckhash);
bp->b_flags &= ~B_CKHASH;
bp->b_flags |= B_INVAL | B_NOCACHE;
brelse(bp);