diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2013-01-11 18:43:49 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-01-29 18:48:51 -0500 |
commit | b3b3b4070dc01f6b11cae6d5632cd0f428a81aab (patch) | |
tree | cfaba402ec332b5b6f587682628f80e3f53b29ed /drivers/scsi/ipr.h | |
parent | a2e49cb262208a4c3adec7788ecc1179e07dc912 (diff) |
[SCSI] ipr: Resource path error logging cleanup
The resource path as displayed by the ipr driver is the
location string identifying a location on the SAS fabric.
This patch adds the SCSI host number such that error logs
can be more easily correlated in multiple adapter configurations.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r-- | drivers/scsi/ipr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 87762fc404c1..449309a21107 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h | |||
@@ -409,7 +409,7 @@ struct ipr_config_table_entry64 { | |||
409 | __be64 dev_id; | 409 | __be64 dev_id; |
410 | __be64 lun; | 410 | __be64 lun; |
411 | __be64 lun_wwn[2]; | 411 | __be64 lun_wwn[2]; |
412 | #define IPR_MAX_RES_PATH_LENGTH 24 | 412 | #define IPR_MAX_RES_PATH_LENGTH 48 |
413 | __be64 res_path; | 413 | __be64 res_path; |
414 | struct ipr_std_inq_data std_inq_data; | 414 | struct ipr_std_inq_data std_inq_data; |
415 | u8 reserved2[4]; | 415 | u8 reserved2[4]; |
@@ -1722,7 +1722,8 @@ struct ipr_ucode_image_header { | |||
1722 | if (ipr_is_device(hostrcb)) { \ | 1722 | if (ipr_is_device(hostrcb)) { \ |
1723 | if ((hostrcb)->ioa_cfg->sis64) { \ | 1723 | if ((hostrcb)->ioa_cfg->sis64) { \ |
1724 | printk(KERN_ERR IPR_NAME ": %s: " fmt, \ | 1724 | printk(KERN_ERR IPR_NAME ": %s: " fmt, \ |
1725 | ipr_format_res_path(hostrcb->hcam.u.error64.fd_res_path, \ | 1725 | ipr_format_res_path(hostrcb->ioa_cfg, \ |
1726 | hostrcb->hcam.u.error64.fd_res_path, \ | ||
1726 | hostrcb->rp_buffer, \ | 1727 | hostrcb->rp_buffer, \ |
1727 | sizeof(hostrcb->rp_buffer)), \ | 1728 | sizeof(hostrcb->rp_buffer)), \ |
1728 | __VA_ARGS__); \ | 1729 | __VA_ARGS__); \ |