From 086a638ef6f3613420a76d08771c180253f631ab Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Fri, 18 Jul 2003 05:28:30 +0000 Subject: [PATCH] Add some debug messages. --- sys/dev/firewire/firewire.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index c5532652b5d9..5583c8d830f2 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);