ext2fs: update format specifiers for ext4 type.

Previous bandaid was not appropriate and didn't really work for
all platforms. While here, cleanup the surrounding code to match
ffs_checkoverlap()

Reported by:	dim, jmallet and bde
MFC after:	3 weeks
This commit is contained in:
Pedro F. Giffuni 2013-08-14 14:22:46 +00:00
parent 85981e9950
commit 4a62545173
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254326

View File

@ -150,10 +150,10 @@ ext2_checkoverlap(struct buf *bp, struct inode *ip)
ep->b_blkno + btodb(ep->b_bcount) <= start)
continue;
vprint("Disk overlap", vp);
(void)printf("\tstart %ld, end %ld overlap start %lld, end %ld\n",
start, last, (long long)ep->b_blkno,
(long)(ep->b_blkno + btodb(ep->b_bcount) - 1));
panic("Disk buffer overlap");
printf("\tstart %jd, end %jd overlap start %jd, end %jd\n",
(intmax_t)start, (intmax_t)last, (intmax_t)ep->b_blkno,
(intmax_t)(ep->b_blkno + btodb(ep->b_bcount) - 1));
panic("ext2_checkoverlap: Disk buffer overlap");
}
}
#endif /* KDB */