diff options
author | joe <joe@FreeBSD.org> | 2002-08-16 12:16:07 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-08-16 12:16:07 +0000 |
commit | 6742ffa0ae2d6a1a7f5ed81f56bf52bd504a8d6a (patch) | |
tree | 49b3c170a35ab6b97589945a00cf78f776d8655f | |
parent | fd516aa2a43bd138df98ce461c4cf822c0d3f5b6 (diff) | |
download | FreeBSD-src-6742ffa0ae2d6a1a7f5ed81f56bf52bd504a8d6a.zip FreeBSD-src-6742ffa0ae2d6a1a7f5ed81f56bf52bd504a8d6a.tar.gz |
MFNetBSD: 1.51
Move a quirk tests so the message printed about directionality is
right.
-rw-r--r-- | sys/dev/usb/ulpt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c index 2cbc695..3494d07 100644 --- a/sys/dev/usb/ulpt.c +++ b/sys/dev/usb/ulpt.c @@ -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$ */ /* @@ -277,19 +277,20 @@ USB_ATTACH(ulpt) } } 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; |