From 39b2899f54d2c39e85c7993d2f4904d8b7ff8ca0 Mon Sep 17 00:00:00 2001
From: Hidetoshi Shimokawa <simokawa@FreeBSD.org>
Date: Wed, 12 Nov 2003 04:06:21 +0000
Subject: [PATCH] Improve debug message.

---
 sys/dev/firewire/sbp.c      |  6 +++---
 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 95ce8e0143a7..39c753664c21 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 6b3465d4e846..a5c35818ac0a 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;
 	}