Fix architectures where pointer and u_int have different sizes

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D14049
This commit is contained in:
Li-Wen Hsu 2018-01-25 08:36:19 +00:00
parent 5a70796a71
commit af89fcf725
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328393

View File

@ -368,8 +368,8 @@ flush(int fd, struct bufarea *bp)
switch (bp->b_type) {
case BT_SUPERBLK:
if (bp != &sblk)
pfatal("BUFFER 0x%x DOES NOT MATCH SBLK 0x%x\n",
(u_int)bp, (u_int)&sblk);
pfatal("BUFFER %p DOES NOT MATCH SBLK %p\n",
bp, &sblk);
blwrite(fd, bp->b_un.b_buf, bp->b_bno, bp->b_size);
for (i = 0, j = 0; i < sblock.fs_cssize; i += sblock.fs_bsize,
j++) {