Add a few more diagnostics.

This commit is contained in:
augustss 1999-11-16 22:19:03 +00:00
parent 70ad5362d4
commit ffb29861c2
2 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uhci.c,v 1.64 1999/11/13 23:58:01 augustss Exp $ */
/* $NetBSD: uhci.c,v 1.65 1999/11/16 22:19:03 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -1014,7 +1014,8 @@ uhci_idone(ii)
}
#ifdef UHCI_DEBUG
DPRINTFN(10, ("uhci_idone: ii=%p ready\n", ii));
DPRINTFN(10, ("uhci_idone: ii=%p, xfer=%p, pipe=%p ready\n",
ii, xfer, upipe));
if (uhcidebug > 10)
uhci_dump_tds(ii->stdstart);
#endif
@ -1496,6 +1497,8 @@ uhci_abort_req(xfer, status)
uhci_intr_info_t *ii = upipe->iinfo;
uhci_soft_td_t *std;
DPRINTFN(1,("uhci_abort_req: xfer=%p, status=%d\n", xfer, status));
/* Make interrupt routine ignore it, */
xfer->status = status;

View File

@ -1,4 +1,4 @@
/* $NetBSD: usbdi.c,v 1.48 1999/11/12 00:34:58 augustss Exp $ */
/* $NetBSD: usbdi.c,v 1.49 1999/11/16 22:19:03 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -145,6 +145,8 @@ usbd_open_pipe(iface, address, flags, pipe)
for (i = 0; i < iface->idesc->bNumEndpoints; i++) {
ep = &iface->endpoints[i];
if (ep->edesc == NULL)
return (USBD_IOERROR);
if (ep->edesc->bEndpointAddress == address)
goto found;
}
@ -987,7 +989,7 @@ usbd_do_request_async(dev, req, data)
usbd_status err;
xfer = usbd_alloc_request(dev);
if (xfer == 0)
if (xfer == NULL)
return (USBD_NOMEM);
usbd_setup_default_request(xfer, dev, 0, USBD_DEFAULT_TIMEOUT, req,
data, UGETW(req->wLength), 0, usbd_do_request_async_cb);