Skip to contentSkip to conversation

mpt fusion: DMPT_DEBUG_FC conditional code doesn't compile

PATCH New Michael Reed 1 participant 1 message Feb 27, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpt fusion: DMPT_DEBUG_FC conditional code doesn't compile

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

---

drivers/message/fusion/mptfc.c +8 -2
diff -ru a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c
@@ -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;
 }