aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptfc.c
diff options
context:
space:
mode:
authorEric Moore <eric.moore@lsi.com>2007-09-14 20:46:51 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:48:34 -0400
commit29dd3609f2fc70e02ce48123485b14d9417b834f (patch)
tree54d4f8dc50dd8a45b37f66352a902fbf225b24c8 /drivers/message/fusion/mptfc.c
parent685b9e02fb77c6f33319ca59c52ae67e92fb750c (diff)
[SCSI] mpt fusion: standardize printks and debug info
Standardize all prints using common MYIOC_s_XXX_FMT macro defined in mptbase.h. Currently the driver uses several different methods to display info, where in some cases the "controller name" generating the printk is not provided. Signed-off-by: Eric Moore <Eric.Moore@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptfc.c')
-rw-r--r--drivers/message/fusion/mptfc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c
index 0586f87ffb19..6c6299485f4e 100644
--- a/drivers/message/fusion/mptfc.c
+++ b/drivers/message/fusion/mptfc.c
@@ -204,7 +204,7 @@ mptfc_block_error_handler(struct scsi_cmnd *SCpnt,
204 "DID_IMM_RETRY, deferring %s recovery.\n", 204 "DID_IMM_RETRY, deferring %s recovery.\n",
205 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->name, 205 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->name,
206 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->sh->host_no, 206 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->sh->host_no,
207 SCpnt->device->id,SCpnt->device->lun,caller)); 207 SCpnt->device->id, SCpnt->device->lun, caller));
208 msleep(1000); 208 msleep(1000);
209 spin_lock_irqsave(shost->host_lock, flags); 209 spin_lock_irqsave(shost->host_lock, flags);
210 } 210 }
@@ -216,7 +216,7 @@ mptfc_block_error_handler(struct scsi_cmnd *SCpnt,
216 "port state %d, vdev %p.\n", caller, 216 "port state %d, vdev %p.\n", caller,
217 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->name, 217 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->name,
218 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->sh->host_no, 218 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->sh->host_no,
219 SCpnt->device->id,SCpnt->device->lun,ready, 219 SCpnt->device->id, SCpnt->device->lun, ready,
220 SCpnt->device->hostdata)); 220 SCpnt->device->hostdata));
221 return FAILED; 221 return FAILED;
222 } 222 }
@@ -224,7 +224,7 @@ mptfc_block_error_handler(struct scsi_cmnd *SCpnt,
224 "%s.%d: %d:%d, executing recovery.\n", caller, 224 "%s.%d: %d:%d, executing recovery.\n", caller,
225 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->name, 225 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->name,
226 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->sh->host_no, 226 ((MPT_SCSI_HOST *) shost->hostdata)->ioc->sh->host_no,
227 SCpnt->device->id,SCpnt->device->lun)); 227 SCpnt->device->id, SCpnt->device->lun));
228 return (*func)(SCpnt); 228 return (*func)(SCpnt);
229} 229}
230 230
@@ -1320,8 +1320,8 @@ mptfc_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1320 sh->transportt = mptfc_transport_template; 1320 sh->transportt = mptfc_transport_template;
1321 error = scsi_add_host (sh, &ioc->pcidev->dev); 1321 error = scsi_add_host (sh, &ioc->pcidev->dev);
1322 if(error) { 1322 if(error) {
1323 dprintk(ioc, printk(KERN_ERR MYNAM 1323 dprintk(ioc, printk(MYIOC_s_ERR_FMT
1324 "scsi_add_host failed\n")); 1324 "scsi_add_host failed\n", ioc->name));
1325 goto out_mptfc_probe; 1325 goto out_mptfc_probe;
1326 } 1326 }
1327 1327