diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-07-18 05:28:30 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-07-18 05:28:30 +0000 |
commit | 64c9528c46ed1b58d40c5e618fc3d7fd76eb5d5f (patch) | |
tree | 01f175ea338c0cfcf861a52321d1728a23904898 | |
parent | 8c86a69beb11982e649317ffae6803742f1d0bcc (diff) | |
download | FreeBSD-src-64c9528c46ed1b58d40c5e618fc3d7fd76eb5d5f.zip FreeBSD-src-64c9528c46ed1b58d40c5e618fc3d7fd76eb5d5f.tar.gz |
Add some debug messages.
-rw-r--r-- | sys/dev/firewire/firewire.c | 10 |
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); |