summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-06-02 12:35:05 +0000
committerderaadt <deraadt@openbsd.org>2009-06-02 12:35:05 +0000
commitcd69bc99bf0c3d9dcf4edfb4f2edee9bda8beba0 (patch)
tree77db63616998eebe41aa87cb6bdab3d24684646f
parentreplace custom macro sizeofa() with nitems() (diff)
downloadwireguard-openbsd-cd69bc99bf0c3d9dcf4edfb4f2edee9bda8beba0.tar.xz
wireguard-openbsd-cd69bc99bf0c3d9dcf4edfb4f2edee9bda8beba0.zip
blkno's are 64 bit so need %llu, found by Parfait
ok oga
-rw-r--r--sys/ufs/ext2fs/ext2fs_subr.c4
-rw-r--r--sys/ufs/ffs/ffs_subr.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_subr.c b/sys/ufs/ext2fs/ext2fs_subr.c
index a8ac75a91ec..9046639a884 100644
--- a/sys/ufs/ext2fs/ext2fs_subr.c
+++ b/sys/ufs/ext2fs/ext2fs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_subr.c,v 1.18 2008/01/05 19:49:26 otto Exp $ */
+/* $OpenBSD: ext2fs_subr.c,v 1.19 2009/06/02 12:35:05 deraadt Exp $ */
/* $NetBSD: ext2fs_subr.c,v 1.1 1997/06/11 09:34:03 bouyer Exp $ */
/*
@@ -124,7 +124,7 @@ ext2fs_checkoverlap(struct buf *bp, struct inode *ip)
ep->b_blkno + btodb(ep->b_bcount) <= start)
continue;
vprint("Disk overlap", vp);
- printf("\tstart %d, end %d overlap start %d, end %ld\n",
+ printf("\tstart %d, end %d overlap start %llu, end %llu\n",
start, last, ep->b_blkno,
ep->b_blkno + btodb(ep->b_bcount) - 1);
panic("Disk buffer overlap");
diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c
index 21524c2bcbf..acbf2649a46 100644
--- a/sys/ufs/ffs/ffs_subr.c
+++ b/sys/ufs/ffs/ffs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_subr.c,v 1.21 2008/01/05 19:49:26 otto Exp $ */
+/* $OpenBSD: ffs_subr.c,v 1.22 2009/06/02 12:35:06 deraadt Exp $ */
/* $NetBSD: ffs_subr.c,v 1.6 1996/03/17 02:16:23 christos Exp $ */
/*
@@ -142,7 +142,7 @@ ffs_checkoverlap(struct buf *bp, struct inode *ip)
ep->b_blkno + btodb(ep->b_bcount) <= start)
continue;
vprint("Disk overlap", vp);
- (void)printf("\tstart %d, end %d overlap start %d, end %ld\n",
+ (void)printf("\tstart %d, end %d overlap start %llu, end %llu\n",
start, last, ep->b_blkno,
ep->b_blkno + btodb(ep->b_bcount) - 1);
panic("Disk buffer overlap");