summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2009-08-24 08:52:14 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2009-08-24 08:52:14 +0000
commit30bec3c9b8f4f2038be06030eeb602f4c92b55f6 (patch)
treec5cc6960fb4267a4c00f042e2a1554c9c3e2afb6 /sys/arch/sparc/dev
parentccb411cd75b1a29bd369ea014ff28be13e3c0d71 (diff)
- fix format strings for values that are daddr64_t
ok otto@, agreed by deraadt@
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/fd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index 070f4c029e1..83124fddde7 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.66 2009/08/13 15:23:12 deraadt Exp $ */
+/* $OpenBSD: fd.c,v 1.67 2009/08/24 08:52:13 jasper Exp $ */
/* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */
/*-
@@ -716,7 +716,7 @@ fdstrategy(bp)
#ifdef FD_DEBUG
if (fdc_debug > 1)
- printf("fdstrategy: b_blkno %d b_bcount %ld blkno %d cylin %ld\n",
+ printf("fdstrategy: b_blkno %d b_bcount %ld blkno %lld cylin %ld\n",
bp->b_blkno, bp->b_bcount, fd->sc_blkno, bp->b_cylinder);
#endif
@@ -1371,7 +1371,7 @@ loop:
{int block;
block = (fd->sc_cylin * type->heads + head) * type->sectrac + sec;
if (block != fd->sc_blkno) {
- printf("fdcintr: block %d != blkno %d\n", block, fd->sc_blkno);
+ printf("fdcintr: block %d != blkno %lld\n", block, fd->sc_blkno);
#if defined(FD_DEBUG) && defined(DDB)
Debugger();
#endif
@@ -1498,7 +1498,7 @@ loop:
fdcstatus(fdc,
bp->b_flags & B_READ
? "read failed" : "write failed");
- printf("blkno %d nblks %d nstat %d tc %d\n",
+ printf("blkno %lld nblks %d nstat %d tc %d\n",
fd->sc_blkno, fd->sc_nblks,
fdc->sc_nstat, fdc->sc_tc);
}