linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Reed <mdr@sgi.com>
To: linux-scsi <linux-scsi@vger.kernel.org>,
	"Moore, Eric Dean" <Eric.Moore@lsil.com>
Subject: [PATCH 1/1] mpt fusion: DMPT_DEBUG_FC conditional code doesn't compile
Date: Mon, 27 Feb 2006 10:00:51 -0600	[thread overview]
Message-ID: <44032233.30407@sgi.com> (raw)

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

                 reply	other threads:[~2006-02-27 16:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44032233.30407@sgi.com \
    --to=mdr@sgi.com \
    --cc=Eric.Moore@lsil.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).