don't print b_resid when it's not valid.

This commit is contained in:
chs 2007-01-28 21:33:24 +00:00
parent f4850e655c
commit 11703af575

View File

@ -1,4 +1,4 @@
/* $NetBSD: vnd.c,v 1.160 2006/11/16 01:32:45 christos Exp $ */
/* $NetBSD: vnd.c,v 1.161 2007/01/28 21:33:24 chs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -137,7 +137,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.160 2006/11/16 01:32:45 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.161 2007/01/28 21:33:24 chs Exp $");
#if defined(_KERNEL_OPT)
#include "fs_nfs.h"
@ -689,10 +689,10 @@ handle_with_rdwr(struct vnd_softc *vnd, const struct buf *obp, struct buf *bp)
if (vnddebug & VDB_IO)
printf("vnd (rdwr): vp %p, %s, rawblkno 0x%" PRIx64
", secsize %d, offset %" PRIu64
", bcount %d, resid %d\n",
", bcount %d\n",
vp, doread ? "read" : "write", obp->b_rawblkno,
vnd->sc_dkdev.dk_label->d_secsize, offset,
bp->b_bcount, bp->b_resid);
bp->b_bcount);
#endif
/* Issue the read or write operation. */