From 1e03ff6cf08bd7bbe62093d4fd2ab64d7d210ebe Mon Sep 17 00:00:00 2001 From: Josef Karthauser <joe@FreeBSD.org> Date: Fri, 16 Aug 2002 12:16:07 +0000 Subject: [PATCH] MFNetBSD: 1.51 Move a quirk tests so the message printed about directionality is right. --- sys/dev/usb/ulpt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c index 2cbc6956aadc..3494d07f59f2 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;