diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-12-03 16:41:36 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-01-02 11:22:16 -0500 |
commit | 71610f55fa4db63dbf5385929a47c9fb2451f332 (patch) | |
tree | b816672eef25e1436111e6c78053612bd22fb016 /drivers/scsi/libsas | |
parent | b58602a4bac012b5f4fc12fe6b46ab237b610d5d (diff) |
[SCSI] struct device - replace bus_id with dev_name(), dev_set_name()
[jejb: limit ioctl to returning 20 characters to avoid overrun
on long device names and add a few more conversions]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/libsas')
-rw-r--r-- | drivers/scsi/libsas/sas_discover.c | 2 | ||||
-rw-r--r-- | drivers/scsi/libsas/sas_dump.c | 2 | ||||
-rw-r--r-- | drivers/scsi/libsas/sas_port.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index 709a6f75ca9..facc5bfcf7d 100644 --- a/drivers/scsi/libsas/sas_discover.c +++ b/drivers/scsi/libsas/sas_discover.c | |||
@@ -169,7 +169,7 @@ int sas_notify_lldd_dev_found(struct domain_device *dev) | |||
169 | if (res) { | 169 | if (res) { |
170 | printk("sas: driver on pcidev %s cannot handle " | 170 | printk("sas: driver on pcidev %s cannot handle " |
171 | "device %llx, error:%d\n", | 171 | "device %llx, error:%d\n", |
172 | sas_ha->dev->bus_id, | 172 | dev_name(sas_ha->dev), |
173 | SAS_ADDR(dev->sas_addr), res); | 173 | SAS_ADDR(dev->sas_addr), res); |
174 | } | 174 | } |
175 | } | 175 | } |
diff --git a/drivers/scsi/libsas/sas_dump.c b/drivers/scsi/libsas/sas_dump.c index bf34a236f94..c17c25030f1 100644 --- a/drivers/scsi/libsas/sas_dump.c +++ b/drivers/scsi/libsas/sas_dump.c | |||
@@ -56,7 +56,7 @@ void sas_dprint_phye(int phyid, enum phy_event pe) | |||
56 | 56 | ||
57 | void sas_dprint_hae(struct sas_ha_struct *sas_ha, enum ha_event he) | 57 | void sas_dprint_hae(struct sas_ha_struct *sas_ha, enum ha_event he) |
58 | { | 58 | { |
59 | SAS_DPRINTK("ha %s: %s event\n", sas_ha->dev->bus_id, | 59 | SAS_DPRINTK("ha %s: %s event\n", dev_name(sas_ha->dev), |
60 | sas_hae_str[he]); | 60 | sas_hae_str[he]); |
61 | } | 61 | } |
62 | 62 | ||
diff --git a/drivers/scsi/libsas/sas_port.c b/drivers/scsi/libsas/sas_port.c index 139935a121b..e6ac59c023f 100644 --- a/drivers/scsi/libsas/sas_port.c +++ b/drivers/scsi/libsas/sas_port.c | |||
@@ -113,7 +113,7 @@ static void sas_form_port(struct asd_sas_phy *phy) | |||
113 | sas_port_add_phy(port->port, phy->phy); | 113 | sas_port_add_phy(port->port, phy->phy); |
114 | 114 | ||
115 | SAS_DPRINTK("%s added to %s, phy_mask:0x%x (%16llx)\n", | 115 | SAS_DPRINTK("%s added to %s, phy_mask:0x%x (%16llx)\n", |
116 | phy->phy->dev.bus_id,port->port->dev.bus_id, | 116 | dev_name(&phy->phy->dev), dev_name(&port->port->dev), |
117 | port->phy_mask, | 117 | port->phy_mask, |
118 | SAS_ADDR(port->attached_sas_addr)); | 118 | SAS_ADDR(port->attached_sas_addr)); |
119 | 119 | ||