Improve debug message.

This commit is contained in:
Hidetoshi Shimokawa 2003-11-12 04:06:21 +00:00
parent 4a4bfb088e
commit 39b2899f54
2 changed files with 9 additions and 9 deletions

View File

@ -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){

View File

@ -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;
}