diff options
author | pfg <pfg@FreeBSD.org> | 2013-08-14 14:22:46 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-08-14 14:22:46 +0000 |
commit | 8255307210ba488bbf6e9072a645e975c808f8b2 (patch) | |
tree | 4f82912630652a5ddfe07d92252dacdace388dbe /sys/fs/ext2fs/ext2_subr.c | |
parent | 8eeca12329711eeea36b4aebce480ff67b306ca4 (diff) | |
download | FreeBSD-src-8255307210ba488bbf6e9072a645e975c808f8b2.zip FreeBSD-src-8255307210ba488bbf6e9072a645e975c808f8b2.tar.gz |
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
Diffstat (limited to 'sys/fs/ext2fs/ext2_subr.c')
-rw-r--r-- | sys/fs/ext2fs/ext2_subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/ext2fs/ext2_subr.c b/sys/fs/ext2fs/ext2_subr.c index 9afad65..ec10ea8 100644 --- a/sys/fs/ext2fs/ext2_subr.c +++ b/sys/fs/ext2fs/ext2_subr.c @@ -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 */ |