Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Move a quirk tests so the message printed about ...



details:   https://anonhg.NetBSD.org/src/rev/656a8b46b05b
branches:  trunk
changeset: 535337:656a8b46b05b
user:      augustss <augustss%NetBSD.org@localhost>
date:      Thu Aug 15 09:32:50 2002 +0000

description:
Move a quirk tests so the message printed about directionality is right.

diffstat:

 sys/dev/usb/ulpt.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r e99267c26efe -r 656a8b46b05b sys/dev/usb/ulpt.c
--- a/sys/dev/usb/ulpt.c        Thu Aug 15 06:31:30 2002 +0000
+++ b/sys/dev/usb/ulpt.c        Thu Aug 15 09:32:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ulpt.c,v 1.50 2002/07/11 21:14:31 augustss Exp $       */
+/*     $NetBSD: ulpt.c,v 1.51 2002/08/15 09:32:50 augustss Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $       */
 
 /*
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.50 2002/07/11 21:14:31 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.51 2002/08/15 09:32:50 augustss Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -276,19 +276,20 @@
                }
        }
        if (sc->sc_out == -1) {
-               printf("%s: could not find bulk endpoint\n",
+               printf("%s: could not find bulk out endpoint\n",
                    USBDEVNAME(sc->sc_dev));
                sc->sc_dying = 1;
                USB_ATTACH_ERROR_RETURN;
        }
-       printf("%s: using %s-directional mode\n", USBDEVNAME(sc->sc_dev),
-              sc->sc_in >= 0 ? "bi" : "uni");
 
        if (usbd_get_quirks(dev)->uq_flags & UQ_BROKEN_BIDIR) {
                /* This device doesn't handle reading properly. */
                sc->sc_in = -1;
        }
 
+       printf("%s: using %s-directional mode\n", USBDEVNAME(sc->sc_dev),
+              sc->sc_in >= 0 ? "bi" : "uni");
+
        DPRINTFN(10, ("ulpt_attach: bulk=%d\n", sc->sc_out));
 
        sc->sc_iface = iface;



Home | Main Index | Thread Index | Old Index