Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Add a DIAGNOSTIC message.
details: https://anonhg.NetBSD.org/src/rev/b183498901f4
branches: trunk
changeset: 500204:b183498901f4
user: augustss <augustss%NetBSD.org@localhost>
date: Fri Dec 08 02:33:44 2000 +0000
description:
Add a DIAGNOSTIC message.
diffstat:
sys/dev/usb/umass.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 23c6e60f0ec8 -r b183498901f4 sys/dev/usb/umass.c
--- a/sys/dev/usb/umass.c Fri Dec 08 02:30:51 2000 +0000
+++ b/sys/dev/usb/umass.c Fri Dec 08 02:33:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umass.c,v 1.44 2000/11/04 15:54:36 augustss Exp $ */
+/* $NetBSD: umass.c,v 1.45 2000/12/08 02:33:44 augustss Exp $ */
/*-
* Copyright (c) 1999 MAEKAWA Masahide <bishop%rr.iij4u.or.jp@localhost>,
* Nick Hibma <n_hibma%freebsd.org@localhost>
@@ -3235,6 +3235,13 @@
Static void
umass_scsipi_minphys(struct buf *bp)
{
+#ifdef DIAGNOSTIC
+ if (bp->b_bcount <= 0) {
+ printf("umass_scsipi_minphys count(%ld) <= 0\n",
+ bp->b_bcount);
+ bp->b_bcount = UMASS_MAX_TRANSFER_SIZE;
+ }
+#endif
if (bp->b_bcount > UMASS_MAX_TRANSFER_SIZE)
bp->b_bcount = UMASS_MAX_TRANSFER_SIZE;
minphys(bp);
Home |
Main Index |
Thread Index |
Old Index