diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-11-12 04:06:21 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-11-12 04:06:21 +0000 |
commit | e1aafea49411106110732817876fea23642ceb16 (patch) | |
tree | 993b4c64d25b695b5345b8a01c355b5647eaec98 /sys/dev/firewire | |
parent | 1c9ed43eb59ce7605b6a9b777033e2d713d3f508 (diff) | |
download | FreeBSD-src-e1aafea49411106110732817876fea23642ceb16.zip FreeBSD-src-e1aafea49411106110732817876fea23642ceb16.tar.gz |
Improve debug message.
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r-- | sys/dev/firewire/sbp.c | 6 | ||||
-rw-r--r-- | sys/dev/firewire/sbp_targ.c | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c index 95ce8e0..39c7536 100644 --- a/sys/dev/firewire/sbp.c +++ b/sys/dev/firewire/sbp.c @@ -1142,7 +1142,7 @@ SBP_DEBUG(1) END_DEBUG if (xfer->resp != 0) { /* XXX */ - printf("%s: xfer->resp != 0\n", __FUNCTION__); + printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); } sbp_xfer_free(xfer); sdev->flags &= ~ORB_POINTER_ACTIVE; @@ -1208,7 +1208,7 @@ SBP_DEBUG(1) END_DEBUG if (xfer->resp != 0) { /* XXX */ - printf("%s: xfer->resp != 0\n", __FUNCTION__); + printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); } sbp_xfer_free(xfer); return; @@ -1573,7 +1573,7 @@ printf("sbp %08x %08x %08x %08x\n", ntohl(ld[8]), ntohl(ld[9]), ntohl(ld[10]), n */ sbp = (struct sbp_softc *)xfer->sc; if (xfer->resp != 0){ - printf("sbp_recv: xfer->resp != 0\n"); + printf("sbp_recv: xfer->resp = %d\n", xfer->resp); goto done0; } if (xfer->recv.payload == NULL){ diff --git a/sys/dev/firewire/sbp_targ.c b/sys/dev/firewire/sbp_targ.c index 6b3465d..a5c3581 100644 --- a/sys/dev/firewire/sbp_targ.c +++ b/sys/dev/firewire/sbp_targ.c @@ -471,7 +471,7 @@ sbp_targ_free_orbi(struct fw_xfer *xfer) orbi = (struct orb_info *)xfer->sc; if (xfer->resp != 0) { /* XXX */ - printf("%s: xfer->resp != 0\n", __FUNCTION__); + printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); } free(orbi, M_SBP_TARG); fw_xfer_free(xfer); @@ -589,7 +589,7 @@ sbp_targ_cam_done(struct fw_xfer *xfer) xfer->resp, orbi->refcount); if (xfer->resp != 0) { - printf("%s: xfer->resp != 0\n", __FUNCTION__); + printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); orbi->status.resp = SBP_TRANS_FAIL; orbi->status.status = htonl(OBJ_DATA | SBE_TIMEOUT /*XXX*/); orbi->status.dead = 1; @@ -734,7 +734,7 @@ sbp_targ_pt_done(struct fw_xfer *xfer) return; } if (xfer->resp != 0) { - printf("%s: xfer->resp != 0\n", __FUNCTION__); + printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); orbi->status.resp = SBP_TRANS_FAIL; orbi->status.status = htonl(OBJ_PT | SBE_TIMEOUT /*XXX*/); orbi->status.dead = 1; @@ -1013,7 +1013,7 @@ sbp_targ_cmd_handler(struct fw_xfer *xfer) orbi = (struct orb_info *)xfer->sc; if (xfer->resp != 0) { - printf("%s: xfer->resp != 0\n", __FUNCTION__); + printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); orbi->status.resp = SBP_TRANS_FAIL; orbi->status.status = htonl(OBJ_ORB | SBE_TIMEOUT /*XXX*/); orbi->status.dead = 1; @@ -1126,7 +1126,7 @@ sbp_targ_mgm_handler(struct fw_xfer *xfer) orbi = (struct orb_info *)xfer->sc; if (xfer->resp != 0) { - printf("%s: xfer->resp != 0\n", __FUNCTION__); + printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); orbi->status.resp = SBP_TRANS_FAIL; orbi->status.status = htonl(OBJ_ORB | SBE_TIMEOUT /*XXX*/); orbi->status.dead = 1; @@ -1203,7 +1203,7 @@ sbp_targ_pointer_handler(struct fw_xfer *xfer) orbi = (struct orb_info *)xfer->sc; if (xfer->resp != 0) { - printf("%s: xfer->resp != 0\n", __FUNCTION__); + printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); goto done; } |