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/mptsas.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/mptsas.c')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 15 |
1 files changed, 8 insertions, 7 deletions
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); |