diff options
| author | enami <enami@NetBSD.org> | 2000-09-12 08:03:24 +0000 |
|---|---|---|
| committer | enami <enami@NetBSD.org> | 2000-09-12 08:03:24 +0000 |
| commit | 9466b8d07efca428f5ee70c77245adbdfd8ce571 (patch) | |
| tree | f2130990104e3e2a8685289df32b6d86c256e83f /sys | |
| parent | fd779f8fc818bd551edc943a227374758b24b390 (diff) | |
Define an auto variable `bn' as off_t instead of int since it is finally
converted to byte offset.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/vnd.c | 9 |
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(); |
