summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-03-20 03:11:07 +0000
committersam <sam@FreeBSD.org>2008-03-20 03:11:07 +0000
commitdc8118c259b1b76ade8abac46b4845ae3bbb45c7 (patch)
treebeb4a1865949c7974371361c3144d596603895fb /sys/dev
parent478b08fc656d9c6ed10ee2d3c7e96ab2b6905b0b (diff)
downloadFreeBSD-src-dc8118c259b1b76ade8abac46b4845ae3bbb45c7.zip
FreeBSD-src-dc8118c259b1b76ade8abac46b4845ae3bbb45c7.tar.gz
add some debug msgs for tracking xfers
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbdi.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index bfc0dd9..684d604 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -284,8 +284,10 @@ usbd_transfer(usbd_xfer_handle xfer)
u_int size;
int s;
- DPRINTFN(5,("usbd_transfer: xfer=%p, flags=%d, pipe=%p, running=%d\n",
- xfer, xfer->flags, pipe, pipe->running));
+ DPRINTFN(5,("%s: xfer=%p, flags=0x%b, rqflags=0x%b, "
+ "length=%d, buffer=%p, allocbuf=%p, pipe=%p, running=%d\n",
+ __func__, xfer, xfer->flags, USBD_BITS, xfer->rqflags, URQ_BITS,
+ xfer->length, xfer->buffer, xfer->allocbuf, pipe, pipe->running));
#ifdef USB_DEBUG
if (usbdebug > 5)
usbd_dump_queue(pipe);
@@ -900,8 +902,11 @@ usb_transfer_complete(usbd_xfer_handle xfer)
SPLUSBCHECK;
- DPRINTFN(5, ("usb_transfer_complete: pipe=%p xfer=%p status=%d "
- "actlen=%d\n", pipe, xfer, xfer->status, xfer->actlen));
+ DPRINTFN(5, ("%s: pipe=%p xfer=%p status=%d actlen=%d\n",
+ __func__, pipe, xfer, xfer->status, xfer->actlen));
+ DPRINTFN(5,("%s: flags=0x%b, rqflags=0x%b, length=%d, buffer=%p\n",
+ __func__, xfer->flags, USBD_BITS, xfer->rqflags, URQ_BITS,
+ xfer->length, xfer->buffer));
#ifdef DIAGNOSTIC
if (xfer->busy_free != XFER_ONQU) {
printf("usb_transfer_complete: xfer=%p not busy 0x%08x\n",
OpenPOWER on IntegriCloud