Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/dev Pullup rev. 1.68 (approved by thorpej):



details:   https://anonhg.NetBSD.org/src/rev/d64bb24a2f51
branches:  netbsd-1-5
changeset: 489446:d64bb24a2f51
user:      enami <enami%NetBSD.org@localhost>
date:      Wed Sep 13 02:18:33 2000 +0000

description:
Pullup rev. 1.68 (approved by thorpej):
Define an auto variable `bn' as off_t instead of int since it is finally
converted to byte offset.

diffstat:

 sys/dev/vnd.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 08e863dde7a7 -r d64bb24a2f51 sys/dev/vnd.c
--- a/sys/dev/vnd.c     Tue Sep 12 16:54:11 2000 +0000
+++ b/sys/dev/vnd.c     Wed Sep 13 02:18:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnd.c,v 1.65 2000/03/30 12:45:27 augustss Exp $        */
+/*     $NetBSD: vnd.c,v 1.65.4.1 2000/09/13 02:18:33 enami Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -314,7 +314,8 @@
        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 @@
                        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();



Home | Main Index | Thread Index | Old Index