summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/firewire.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-07-18 05:28:30 +0000
committersimokawa <simokawa@FreeBSD.org>2003-07-18 05:28:30 +0000
commit64c9528c46ed1b58d40c5e618fc3d7fd76eb5d5f (patch)
tree01f175ea338c0cfcf861a52321d1728a23904898 /sys/dev/firewire/firewire.c
parent8c86a69beb11982e649317ffae6803742f1d0bcc (diff)
downloadFreeBSD-src-64c9528c46ed1b58d40c5e618fc3d7fd76eb5d5f.zip
FreeBSD-src-64c9528c46ed1b58d40c5e618fc3d7fd76eb5d5f.tar.gz
Add some debug messages.
Diffstat (limited to 'sys/dev/firewire/firewire.c')
-rw-r--r--sys/dev/firewire/firewire.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c
index c553265..5583c8d 100644
--- a/sys/dev/firewire/firewire.c
+++ b/sys/dev/firewire/firewire.c
@@ -333,8 +333,8 @@ firewire_xfer_timeout(struct firewire_comm *fc)
/* the rests are newer than this */
break;
device_printf(fc->bdev,
- "split transaction timeout dst=0x%x tl=0x%x\n",
- xfer->dst, i);
+ "split transaction timeout dst=0x%x tl=0x%x state=%d\n",
+ xfer->dst, i, xfer->state);
xfer->resp = ETIMEDOUT;
STAILQ_REMOVE_HEAD(&fc->tlabels[i], link);
fw_xfer_done(xfer);
@@ -998,8 +998,10 @@ fw_xfer_alloc_buf(struct malloc_type *type, int send_len, int recv_len)
void
fw_xfer_done(struct fw_xfer *xfer)
{
- if (xfer->act.hand == NULL)
+ if (xfer->act.hand == NULL) {
+ printf("act.hand == NULL\n");
return;
+ }
if (xfer->fc->status != FWBUSRESET)
xfer->act.hand(xfer);
@@ -1803,7 +1805,7 @@ fw_rcv(struct firewire_comm *fc, struct iovec *vec, int nvec, u_int sub, u_int s
break;
case FWXF_START:
if (firewire_debug)
- printf("not sent yet\n");
+ printf("not sent yet tl=%x\n", xfer->tl);
break;
default:
printf("unexpected state %d\n", xfer->state);
OpenPOWER on IntegriCloud