aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message')
-rw-r--r--drivers/message/fusion/mptbase.h1
-rw-r--r--drivers/message/fusion/mptsas.c15
-rw-r--r--drivers/message/fusion/mptscsih.c4
-rw-r--r--drivers/message/fusion/mptspi.c18
4 files changed, 20 insertions, 18 deletions
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h
index eb65c493ce0a..d7682e083f59 100644
--- a/drivers/message/fusion/mptbase.h
+++ b/drivers/message/fusion/mptbase.h
@@ -186,6 +186,7 @@
186 * MPT drivers. NOTE: Users of these macro defs must 186 * MPT drivers. NOTE: Users of these macro defs must
187 * themselves define their own MYNAM. 187 * themselves define their own MYNAM.
188 */ 188 */
189#define MYIOC_s_FMT MYNAM ": %s: "
189#define MYIOC_s_DEBUG_FMT KERN_DEBUG MYNAM ": %s: " 190#define MYIOC_s_DEBUG_FMT KERN_DEBUG MYNAM ": %s: "
190#define MYIOC_s_INFO_FMT KERN_INFO MYNAM ": %s: " 191#define MYIOC_s_INFO_FMT KERN_INFO MYNAM ": %s: "
191#define MYIOC_s_NOTE_FMT KERN_NOTICE MYNAM ": %s: " 192#define MYIOC_s_NOTE_FMT KERN_NOTICE MYNAM ": %s: "
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index ba4f5e7fcbc7..e4c94f93de16 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -318,8 +318,8 @@ mptsas_set_rphy(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info, struct sas_rp
318 } 318 }
319 319
320 if (rphy) { 320 if (rphy) {
321 dsaswideprintk(ioc, dev_printk(MYIOC_s_DEBUG_FMT, 321 dsaswideprintk(ioc, dev_printk(KERN_DEBUG,
322 &rphy->dev, "add:", ioc->name)); 322 &rphy->dev, MYIOC_s_FMT "add:", ioc->name));
323 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "rphy=%p release=%p\n", 323 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "rphy=%p release=%p\n",
324 ioc->name, rphy, rphy->dev.release)); 324 ioc->name, rphy, rphy->dev.release));
325 } 325 }
@@ -341,8 +341,8 @@ mptsas_set_port(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info, struct sas_po
341 phy_info->port_details->port = port; 341 phy_info->port_details->port = port;
342 342
343 if (port) { 343 if (port) {
344 dsaswideprintk(ioc, dev_printk(MYIOC_s_DEBUG_FMT, 344 dsaswideprintk(ioc, dev_printk(KERN_DEBUG,
345 &port->dev, "add:", ioc->name)); 345 &port->dev, MYIOC_s_FMT "add:", ioc->name));
346 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "port=%p release=%p\n", 346 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "port=%p release=%p\n",
347 ioc->name, port, port->dev.release)); 347 ioc->name, port, port->dev.release));
348 } 348 }
@@ -2296,8 +2296,9 @@ mptsas_delete_expander_phys(MPT_ADAPTER *ioc)
2296 expander_sas_address) 2296 expander_sas_address)
2297 continue; 2297 continue;
2298 dsaswideprintk(ioc, 2298 dsaswideprintk(ioc,
2299 dev_printk(MYIOC_s_DEBUG_FMT, &port->dev, 2299 dev_printk(KERN_DEBUG, &port->dev,
2300 "delete port (%d)\n", ioc->name, port->port_identifier)); 2300 MYIOC_s_FMT "delete port (%d)\n", ioc->name,
2301 port->port_identifier));
2301 sas_port_delete(port); 2302 sas_port_delete(port);
2302 mptsas_port_delete(ioc, phy_info->port_details); 2303 mptsas_port_delete(ioc, phy_info->port_details);
2303 } 2304 }
@@ -2681,7 +2682,7 @@ mptsas_hotplug_work(struct work_struct *work)
2681 printk(MYIOC_s_INFO_FMT 2682 printk(MYIOC_s_INFO_FMT
2682 "removing %s device, channel %d, id %d, phy %d\n", 2683 "removing %s device, channel %d, id %d, phy %d\n",
2683 ioc->name, ds, ev->channel, ev->id, phy_info->phy_id); 2684 ioc->name, ds, ev->channel, ev->id, phy_info->phy_id);
2684 dev_printk(MYIOC_s_DEBUG_FMT, &port->dev, 2685 dev_printk(KERN_DEBUG, &port->dev, MYIOC_s_FMT
2685 "delete port (%d)\n", ioc->name, port->port_identifier); 2686 "delete port (%d)\n", ioc->name, port->port_identifier);
2686 sas_port_delete(port); 2687 sas_port_delete(port);
2687 mptsas_port_delete(ioc, phy_info->port_details); 2688 mptsas_port_delete(ioc, phy_info->port_details);
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c
index dc5e996a8944..bdff950a54a1 100644
--- a/drivers/message/fusion/mptscsih.c
+++ b/drivers/message/fusion/mptscsih.c
@@ -992,7 +992,7 @@ mptscsih_flush_running_cmds(MPT_SCSI_HOST *hd)
992 scsi_dma_unmap(sc); 992 scsi_dma_unmap(sc);
993 sc->result = DID_RESET << 16; 993 sc->result = DID_RESET << 16;
994 sc->host_scribble = NULL; 994 sc->host_scribble = NULL;
995 sdev_printk(MYIOC_s_INFO_FMT, sc->device, 995 sdev_printk(KERN_INFO, sc->device, MYIOC_s_FMT
996 "completing cmds: fw_channel %d, fw_id %d, sc=%p," 996 "completing cmds: fw_channel %d, fw_id %d, sc=%p,"
997 " mf = %p, idx=%x\n", ioc->name, channel, id, sc, mf, ii); 997 " mf = %p, idx=%x\n", ioc->name, channel, id, sc, mf, ii);
998 sc->scsi_done(sc); 998 sc->scsi_done(sc);
@@ -1053,7 +1053,7 @@ mptscsih_search_running_cmds(MPT_SCSI_HOST *hd, VirtDevice *vdevice)
1053 scsi_dma_unmap(sc); 1053 scsi_dma_unmap(sc);
1054 sc->host_scribble = NULL; 1054 sc->host_scribble = NULL;
1055 sc->result = DID_NO_CONNECT << 16; 1055 sc->result = DID_NO_CONNECT << 16;
1056 sdev_printk(MYIOC_s_INFO_FMT, sc->device, "completing cmds: fw_channel %d," 1056 sdev_printk(KERN_INFO, sc->device, MYIOC_s_FMT "completing cmds: fw_channel %d,"
1057 "fw_id %d, sc=%p, mf = %p, idx=%x\n", ioc->name, vdevice->vtarget->channel, 1057 "fw_id %d, sc=%p, mf = %p, idx=%x\n", ioc->name, vdevice->vtarget->channel,
1058 vdevice->vtarget->id, sc, mf, ii); 1058 vdevice->vtarget->id, sc, mf, ii);
1059 sc->scsi_done(sc); 1059 sc->scsi_done(sc);
diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c
index 42fdf7db90b0..25bcfcf36f2e 100644
--- a/drivers/message/fusion/mptspi.c
+++ b/drivers/message/fusion/mptspi.c
@@ -537,7 +537,7 @@ static int mptspi_read_spi_device_pg0(struct scsi_target *starget,
537 537
538 spi_dev_pg0 = dma_alloc_coherent(&ioc->pcidev->dev, size, &spi_dev_pg0_dma, GFP_KERNEL); 538 spi_dev_pg0 = dma_alloc_coherent(&ioc->pcidev->dev, size, &spi_dev_pg0_dma, GFP_KERNEL);
539 if (spi_dev_pg0 == NULL) { 539 if (spi_dev_pg0 == NULL) {
540 starget_printk(MYIOC_s_ERR_FMT, starget, 540 starget_printk(KERN_ERR, starget, MYIOC_s_FMT
541 "dma_alloc_coherent for parameters failed\n", ioc->name); 541 "dma_alloc_coherent for parameters failed\n", ioc->name);
542 return -EINVAL; 542 return -EINVAL;
543 } 543 }
@@ -558,7 +558,7 @@ static int mptspi_read_spi_device_pg0(struct scsi_target *starget,
558 cfg.pageAddr = starget->id; 558 cfg.pageAddr = starget->id;
559 559
560 if (mpt_config(ioc, &cfg)) { 560 if (mpt_config(ioc, &cfg)) {
561 starget_printk(MYIOC_s_ERR_FMT, starget, "mpt_config failed\n", ioc->name); 561 starget_printk(KERN_ERR, starget, MYIOC_s_FMT "mpt_config failed\n", ioc->name);
562 goto out_free; 562 goto out_free;
563 } 563 }
564 err = 0; 564 err = 0;
@@ -681,7 +681,7 @@ static void mptspi_dv_device(struct _MPT_SCSI_HOST *hd,
681 /* If this is a piece of a RAID, then quiesce first */ 681 /* If this is a piece of a RAID, then quiesce first */
682 if (sdev->channel == 1 && 682 if (sdev->channel == 1 &&
683 mptscsih_quiesce_raid(hd, 1, vtarget->channel, vtarget->id) < 0) { 683 mptscsih_quiesce_raid(hd, 1, vtarget->channel, vtarget->id) < 0) {
684 starget_printk(MYIOC_s_ERR_FMT, scsi_target(sdev), 684 starget_printk(KERN_ERR, scsi_target(sdev), MYIOC_s_FMT
685 "Integrated RAID quiesce failed\n", ioc->name); 685 "Integrated RAID quiesce failed\n", ioc->name);
686 return; 686 return;
687 } 687 }
@@ -692,7 +692,7 @@ static void mptspi_dv_device(struct _MPT_SCSI_HOST *hd,
692 692
693 if (sdev->channel == 1 && 693 if (sdev->channel == 1 &&
694 mptscsih_quiesce_raid(hd, 0, vtarget->channel, vtarget->id) < 0) 694 mptscsih_quiesce_raid(hd, 0, vtarget->channel, vtarget->id) < 0)
695 starget_printk(MYIOC_s_ERR_FMT, scsi_target(sdev), 695 starget_printk(KERN_ERR, scsi_target(sdev), MYIOC_s_FMT
696 "Integrated RAID resume failed\n", ioc->name); 696 "Integrated RAID resume failed\n", ioc->name);
697 697
698 mptspi_read_parameters(sdev->sdev_target); 698 mptspi_read_parameters(sdev->sdev_target);
@@ -856,7 +856,7 @@ static int mptspi_write_spi_device_pg1(struct scsi_target *starget,
856 856
857 pg1 = dma_alloc_coherent(&ioc->pcidev->dev, size, &pg1_dma, GFP_KERNEL); 857 pg1 = dma_alloc_coherent(&ioc->pcidev->dev, size, &pg1_dma, GFP_KERNEL);
858 if (pg1 == NULL) { 858 if (pg1 == NULL) {
859 starget_printk(MYIOC_s_ERR_FMT, starget, 859 starget_printk(KERN_ERR, starget, MYIOC_s_FMT
860 "dma_alloc_coherent for parameters failed\n", ioc->name); 860 "dma_alloc_coherent for parameters failed\n", ioc->name);
861 return -EINVAL; 861 return -EINVAL;
862 } 862 }
@@ -886,7 +886,7 @@ static int mptspi_write_spi_device_pg1(struct scsi_target *starget,
886 mptspi_print_write_nego(hd, starget, le32_to_cpu(pg1->RequestedParameters)); 886 mptspi_print_write_nego(hd, starget, le32_to_cpu(pg1->RequestedParameters));
887 887
888 if (mpt_config(ioc, &cfg)) { 888 if (mpt_config(ioc, &cfg)) {
889 starget_printk(MYIOC_s_ERR_FMT, starget, 889 starget_printk(KERN_ERR, starget, MYIOC_s_FMT
890 "mpt_config failed\n", ioc->name); 890 "mpt_config failed\n", ioc->name);
891 goto out_free; 891 goto out_free;
892 } 892 }
@@ -1104,11 +1104,11 @@ static void mpt_work_wrapper(struct work_struct *work)
1104 if(vtarget->id != disk) 1104 if(vtarget->id != disk)
1105 continue; 1105 continue;
1106 1106
1107 starget_printk(MYIOC_s_INFO_FMT, vtarget->starget, 1107 starget_printk(KERN_INFO, vtarget->starget, MYIOC_s_FMT
1108 "Integrated RAID requests DV of new device\n", ioc->name); 1108 "Integrated RAID requests DV of new device\n", ioc->name);
1109 mptspi_dv_device(hd, sdev); 1109 mptspi_dv_device(hd, sdev);
1110 } 1110 }
1111 shost_printk(MYIOC_s_INFO_FMT, shost, 1111 shost_printk(KERN_INFO, shost, MYIOC_s_FMT
1112 "Integrated RAID detects new device %d\n", ioc->name, disk); 1112 "Integrated RAID detects new device %d\n", ioc->name, disk);
1113 scsi_scan_target(&ioc->sh->shost_gendev, 1, disk, 0, 1); 1113 scsi_scan_target(&ioc->sh->shost_gendev, 1, disk, 0, 1);
1114} 1114}
@@ -1120,7 +1120,7 @@ static void mpt_dv_raid(struct _MPT_SCSI_HOST *hd, int disk)
1120 MPT_ADAPTER *ioc = hd->ioc; 1120 MPT_ADAPTER *ioc = hd->ioc;
1121 1121
1122 if (!wqw) { 1122 if (!wqw) {
1123 shost_printk(MYIOC_s_ERR_FMT, ioc->sh, 1123 shost_printk(KERN_ERR, ioc->sh, MYIOC_s_FMT
1124 "Failed to act on RAID event for physical disk %d\n", 1124 "Failed to act on RAID event for physical disk %d\n",
1125 ioc->name, disk); 1125 ioc->name, disk);
1126 return; 1126 return;