summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorenami <enami@NetBSD.org>2000-09-12 08:03:24 +0000
committerenami <enami@NetBSD.org>2000-09-12 08:03:24 +0000
commit9466b8d07efca428f5ee70c77245adbdfd8ce571 (patch)
treef2130990104e3e2a8685289df32b6d86c256e83f /sys/dev
parentfd779f8fc818bd551edc943a227374758b24b390 (diff)
Define an auto variable `bn' as off_t instead of int since it is finally
converted to byte offset.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vnd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 5f763ae6893..bb4735e7c1d 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.67 2000/08/20 11:51:52 pk Exp $ */
+/* $NetBSD: vnd.c,v 1.68 2000/09/12 08:03:24 enami Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -314,7 +314,8 @@ vndstrategy(bp)
int unit = vndunit(bp->b_dev);
struct vnd_softc *vnd = &vnd_softc[unit];
struct vndxfer *vnx;
- int s, bn, bsize, resid;
+ int s, bsize, resid;
+ off_t bn;
caddr_t addr;
int sz, flags, error, wlabel;
struct disklabel *lp;
@@ -428,8 +429,8 @@ vndstrategy(bp)
sz = resid;
#ifdef DEBUG
if (vnddebug & VDB_IO)
- printf("vndstrategy: vp %p/%p bn 0x%x/0x%x sz 0x%x\n",
- vnd->sc_vp, vp, bn, nbn, sz);
+ printf("vndstrategy: vp %p/%p bn 0x%qx/0x%x sz 0x%x\n",
+ vnd->sc_vp, vp, (long long)bn, nbn, sz);
#endif
s = splbio();