diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2008-12-19 10:57:00 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 12:38:28 -0500 |
commit | b225cf9b8040849e16add4da8e84a72a3548ada8 (patch) | |
tree | 3c8228ce090cf6e28610c5841a92213e757fce9c /drivers/s390/scsi/zfcp_dbf.c | |
parent | b98478d71b0fea6d35f96069612d92b76013589f (diff) |
[SCSI] zfcp: Remove busid macro
With the change to the dev_ message macros, the macro to get the busid
is only used in a few places. Remove it and directly get the dev_name
from the device.
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_dbf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_dbf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c index 735d675623f8..bf691fbc4d29 100644 --- a/drivers/s390/scsi/zfcp_dbf.c +++ b/drivers/s390/scsi/zfcp_dbf.c | |||
@@ -1249,7 +1249,7 @@ int zfcp_adapter_debug_register(struct zfcp_adapter *adapter) | |||
1249 | char dbf_name[DEBUG_MAX_NAME_LEN]; | 1249 | char dbf_name[DEBUG_MAX_NAME_LEN]; |
1250 | 1250 | ||
1251 | /* debug feature area which records recovery activity */ | 1251 | /* debug feature area which records recovery activity */ |
1252 | sprintf(dbf_name, "zfcp_%s_rec", zfcp_get_busid_by_adapter(adapter)); | 1252 | sprintf(dbf_name, "zfcp_%s_rec", dev_name(&adapter->ccw_device->dev)); |
1253 | adapter->rec_dbf = debug_register(dbf_name, dbfsize, 1, | 1253 | adapter->rec_dbf = debug_register(dbf_name, dbfsize, 1, |
1254 | sizeof(struct zfcp_rec_dbf_record)); | 1254 | sizeof(struct zfcp_rec_dbf_record)); |
1255 | if (!adapter->rec_dbf) | 1255 | if (!adapter->rec_dbf) |
@@ -1259,7 +1259,7 @@ int zfcp_adapter_debug_register(struct zfcp_adapter *adapter) | |||
1259 | debug_set_level(adapter->rec_dbf, 3); | 1259 | debug_set_level(adapter->rec_dbf, 3); |
1260 | 1260 | ||
1261 | /* debug feature area which records HBA (FSF and QDIO) conditions */ | 1261 | /* debug feature area which records HBA (FSF and QDIO) conditions */ |
1262 | sprintf(dbf_name, "zfcp_%s_hba", zfcp_get_busid_by_adapter(adapter)); | 1262 | sprintf(dbf_name, "zfcp_%s_hba", dev_name(&adapter->ccw_device->dev)); |
1263 | adapter->hba_dbf = debug_register(dbf_name, dbfsize, 1, | 1263 | adapter->hba_dbf = debug_register(dbf_name, dbfsize, 1, |
1264 | sizeof(struct zfcp_hba_dbf_record)); | 1264 | sizeof(struct zfcp_hba_dbf_record)); |
1265 | if (!adapter->hba_dbf) | 1265 | if (!adapter->hba_dbf) |
@@ -1269,7 +1269,7 @@ int zfcp_adapter_debug_register(struct zfcp_adapter *adapter) | |||
1269 | debug_set_level(adapter->hba_dbf, 3); | 1269 | debug_set_level(adapter->hba_dbf, 3); |
1270 | 1270 | ||
1271 | /* debug feature area which records SAN command failures and recovery */ | 1271 | /* debug feature area which records SAN command failures and recovery */ |
1272 | sprintf(dbf_name, "zfcp_%s_san", zfcp_get_busid_by_adapter(adapter)); | 1272 | sprintf(dbf_name, "zfcp_%s_san", dev_name(&adapter->ccw_device->dev)); |
1273 | adapter->san_dbf = debug_register(dbf_name, dbfsize, 1, | 1273 | adapter->san_dbf = debug_register(dbf_name, dbfsize, 1, |
1274 | sizeof(struct zfcp_san_dbf_record)); | 1274 | sizeof(struct zfcp_san_dbf_record)); |
1275 | if (!adapter->san_dbf) | 1275 | if (!adapter->san_dbf) |
@@ -1279,7 +1279,7 @@ int zfcp_adapter_debug_register(struct zfcp_adapter *adapter) | |||
1279 | debug_set_level(adapter->san_dbf, 6); | 1279 | debug_set_level(adapter->san_dbf, 6); |
1280 | 1280 | ||
1281 | /* debug feature area which records SCSI command failures and recovery */ | 1281 | /* debug feature area which records SCSI command failures and recovery */ |
1282 | sprintf(dbf_name, "zfcp_%s_scsi", zfcp_get_busid_by_adapter(adapter)); | 1282 | sprintf(dbf_name, "zfcp_%s_scsi", dev_name(&adapter->ccw_device->dev)); |
1283 | adapter->scsi_dbf = debug_register(dbf_name, dbfsize, 1, | 1283 | adapter->scsi_dbf = debug_register(dbf_name, dbfsize, 1, |
1284 | sizeof(struct zfcp_scsi_dbf_record)); | 1284 | sizeof(struct zfcp_scsi_dbf_record)); |
1285 | if (!adapter->scsi_dbf) | 1285 | if (!adapter->scsi_dbf) |