diff options
author | Eric Moore <eric.moore@lsi.com> | 2007-09-29 12:17:21 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:52:19 -0400 |
commit | c51d0beaaed902ef48ed1f3b1834d37b7ffd55e8 (patch) | |
tree | 5d0c5279b079e24876d0d6860bef2bc1e0314561 /drivers/message/fusion/mptspi.c | |
parent | e8206381f5842269691f3164ec0d79b7059bd710 (diff) |
[SCSI] mpt fusion: fix up fusion prints using the sdev_printk, dev_printk, and shost_printk API
Cleaning up prints that use the xxx_printk API, in that the fusion
preamble "mptbase: iocX" follows the info provided by the print API.
The way its currently coded, the [H:C:T] print in sdev_printk will be
inbetween "mptbase" and "iocX", instead of before.
Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptspi.c')
-rw-r--r-- | drivers/message/fusion/mptspi.c | 18 |
1 files changed, 9 insertions, 9 deletions
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; |