linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] mpt fusion: DMPT_DEBUG_FC conditional code doesn't compile
@ 2006-02-27 16:00 Michael Reed
  0 siblings, 0 replies; only message in thread
From: Michael Reed @ 2006-02-27 16:00 UTC (permalink / raw)
  To: linux-scsi, Moore, Eric Dean

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]

mptfc.c doesn't compile when DMPT_DEBUG_FC is defined.

Signed-off-by: Michael Reed <mdr@sgi.com>
---

[-- Attachment #2: 1a-mptfc-debug-fix.patch --]
[-- Type: text/x-patch, Size: 940 bytes --]

diff -ru a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c
--- a/drivers/message/fusion/mptfc.c	2006-02-27 09:47:07.000000000 -0600
+++ b/drivers/message/fusion/mptfc.c	2006-02-27 09:51:01.000000000 -0600
@@ -432,7 +432,7 @@
 				"mptfc_reg_dev.%d: %x, %llx / %llx, tid %d, "
 				"rport tid %d, tmo %d\n",
 					ioc->name,
-					oc->sh->host_no,
+					ioc->sh->host_no,
 					pg0->PortIdentifier,
 					pg0->WWNN,
 					pg0->WWPN,
@@ -562,14 +562,20 @@
 
 	vtarget->num_luns++;
 
+#ifdef DMPT_DEBUG_FC
+	{
+	struct mptfc_rport_info	*ri;
+	ri = *((struct mptfc_rport_info **)rport->dd_data);
 	dfcprintk ((MYIOC_s_INFO_FMT
 		"mptfc_slv_alloc.%d: num_luns %d, sdev.id %d, "
 	        "CurrentTargetID %d, %x %llx %llx\n",
-		ioc->name,
+		hd->ioc->name,
 		sdev->host->host_no,
 		vtarget->num_luns,
 		sdev->id, ri->pg0.CurrentTargetID,
 		ri->pg0.PortIdentifier, ri->pg0.WWPN, ri->pg0.WWNN));
+	}
+#endif
 
 	return 0;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-27 16:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-27 16:00 [PATCH 1/1] mpt fusion: DMPT_DEBUG_FC conditional code doesn't compile Michael Reed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).