summaryrefslogtreecommitdiff
path: root/sys/arch
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
parentccb411cd75b1a29bd369ea014ff28be13e3c0d71 (diff)
- fix format strings for values that are daddr64_t
ok otto@, agreed by deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/stand/installboot.c4
-rw-r--r--sys/arch/hp300/dev/hd.c4
-rw-r--r--sys/arch/sparc/dev/fd.c8
3 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/alpha/stand/installboot.c b/sys/arch/alpha/stand/installboot.c
index 6ee4487ef65..c3f05949ed8 100644
--- a/sys/arch/alpha/stand/installboot.c
+++ b/sys/arch/alpha/stand/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.14 2007/06/06 17:15:11 deraadt Exp $ */
+/* $OpenBSD: installboot.c,v 1.15 2009/08/24 08:52:13 jasper Exp $ */
/* $NetBSD: installboot.c,v 1.2 1997/04/06 08:41:12 cgd Exp $ */
/*
@@ -175,7 +175,7 @@ main(int argc, char *argv[])
partoffset = 0;
}
if (verbose)
- (void)printf("%s partition offset = 0x%lx\n", boot, partoffset);
+ (void)printf("%s partition offset = 0x%llx\n", boot, partoffset);
/* Sync filesystems (make sure boot's block numbers are stable) */
sync();
diff --git a/sys/arch/hp300/dev/hd.c b/sys/arch/hp300/dev/hd.c
index 5fc24a0a1c5..5d43b09034e 100644
--- a/sys/arch/hp300/dev/hd.c
+++ b/sys/arch/hp300/dev/hd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hd.c,v 1.58 2009/08/16 12:17:35 miod Exp $ */
+/* $OpenBSD: hd.c,v 1.59 2009/08/24 08:52:13 jasper Exp $ */
/* $NetBSD: rd.c,v 1.33 1997/07/10 18:14:08 kleink Exp $ */
/*
@@ -1079,7 +1079,7 @@ hderror(unit)
hdprinterr("fault", sp->c_fef, err_fault);
hdprinterr("access", sp->c_aef, err_access);
hdprinterr("info", sp->c_ief, err_info);
- printf(" block: %d, P1-P10: ", hwbn);
+ printf(" block: %lld, P1-P10: ", hwbn);
printf("0x%04x", *(u_int *)&sp->c_raw[0]);
printf("%04x", *(u_int *)&sp->c_raw[4]);
printf("%02x\n", *(u_short *)&sp->c_raw[8]);
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);
}