Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/dev/usb kill scsipi_link from debug code.



details:   https://anonhg.NetBSD.org/src/rev/2103c34a5a9e
branches:  thorpej_scsipi
changeset: 477411:2103c34a5a9e
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Tue Mar 27 13:05:38 2001 +0000

description:
kill scsipi_link from debug code.

diffstat:

 sys/dev/usb/usscanner.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1563e2fd2360 -r 2103c34a5a9e sys/dev/usb/usscanner.c
--- a/sys/dev/usb/usscanner.c   Tue Mar 27 13:03:04 2001 +0000
+++ b/sys/dev/usb/usscanner.c   Tue Mar 27 13:05:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usscanner.c,v 1.4.2.4 2001/03/23 11:32:17 bouyer Exp $ */
+/*     $NetBSD: usscanner.c,v 1.4.2.5 2001/03/27 13:05:38 bouyer Exp $ */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -574,7 +574,7 @@
 
 #ifdef USSCANNER_DEBUG
        if (usscannerdebug > 15)
-               xs->sc_link->flags |= DEBUGLEVEL;
+               xs->xs_periph->periph_flags |= DEBUGLEVEL;
 
        if (sc->sc_state != UAS_SENSECMD) {
                printf("%s: !UAS_SENSECMD\n", USBDEVNAME(sc->sc_dev));
@@ -620,7 +620,7 @@
 
 #ifdef USSCANNER_DEBUG
        if (usscannerdebug > 15)
-               xs->sc_link->flags |= DEBUGLEVEL;
+               xs->xs_periph->periph_flags |= DEBUGLEVEL;
 
        if (sc->sc_state != UAS_CMD) {
                printf("%s: !UAS_CMD\n", USBDEVNAME(sc->sc_dev));
@@ -700,7 +700,7 @@
                }
 
 #ifdef USSCANNER_DEBUG
-               if (sc_link->scsipi_scsi.target != USSCANNER_SCSIID_DEVICE) {
+               if (periph->periph_target != USSCANNER_SCSIID_DEVICE) {
                        DPRINTF(("%s: wrong SCSI ID %d\n",
                            USBDEVNAME(sc->sc_dev), periph->periph_target));
                        xs->error = XS_DRIVER_STUFFUP;



Home | Main Index | Thread Index | Old Index