summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-06 22:04:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-06 22:04:12 +0000
commitaec7c452bd9ea15493327c9356a66a1ba19cc99c (patch)
treebde3ec96ca46c24dc73ad6aa694f6b7e2e77fdeb /sys/kern/subr_disk.c
parenta758047fce6ce628c6aeb61237081aba5cda1c5f (diff)
fix format strings for block #'s now that they are 64 bit; ok tedu (who
also spotted one more)
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 27c07c3dec8..3f5a750f845 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.50 2007/06/06 17:15:13 deraadt Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.51 2007/06/06 22:04:11 deraadt Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -271,10 +271,11 @@ diskerr(struct buf *bp, char *dname, char *what, int pri, int blkdone,
}
if (lp && (blkdone >= 0 || bp->b_bcount <= lp->d_secsize)) {
sn += DL_GETPOFFSET(&lp->d_partitions[part]);
- (*pr)(" (%s%d bn %lld; cn %d", dname, unit, sn,
+ (*pr)(" (%s%d bn %lld; cn %lld", dname, unit, sn,
sn / lp->d_secpercyl);
sn %= lp->d_secpercyl;
- (*pr)(" tn %d sn %d)", sn / lp->d_nsectors, sn % lp->d_nsectors);
+ (*pr)(" tn %lld sn %lld)", sn / lp->d_nsectors,
+ sn % lp->d_nsectors);
}
}