[SCSI] qla2xxx: Display nport_id when any SNS command fails.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
Родитель
0060ddf8f7
Коммит
cf2d771255
|
@ -121,8 +121,11 @@ qla2x00_chk_ms_status(scsi_qla_host_t *vha, ms_iocb_entry_t *ms_pkt,
|
||||||
|
|
||||||
rval = QLA_FUNCTION_FAILED;
|
rval = QLA_FUNCTION_FAILED;
|
||||||
if (ms_pkt->entry_status != 0) {
|
if (ms_pkt->entry_status != 0) {
|
||||||
DEBUG2_3(printk("scsi(%ld): %s failed, error status (%x).\n",
|
DEBUG2_3(printk(KERN_WARNING "scsi(%ld): %s failed, error status "
|
||||||
vha->host_no, routine, ms_pkt->entry_status));
|
"(%x) on port_id: %02x%02x%02x.\n",
|
||||||
|
vha->host_no, routine, ms_pkt->entry_status,
|
||||||
|
vha->d_id.b.domain, vha->d_id.b.area,
|
||||||
|
vha->d_id.b.al_pa));
|
||||||
} else {
|
} else {
|
||||||
if (IS_FWI2_CAPABLE(ha))
|
if (IS_FWI2_CAPABLE(ha))
|
||||||
comp_status = le16_to_cpu(
|
comp_status = le16_to_cpu(
|
||||||
|
@ -136,8 +139,10 @@ qla2x00_chk_ms_status(scsi_qla_host_t *vha, ms_iocb_entry_t *ms_pkt,
|
||||||
if (ct_rsp->header.response !=
|
if (ct_rsp->header.response !=
|
||||||
__constant_cpu_to_be16(CT_ACCEPT_RESPONSE)) {
|
__constant_cpu_to_be16(CT_ACCEPT_RESPONSE)) {
|
||||||
DEBUG2_3(printk("scsi(%ld): %s failed, "
|
DEBUG2_3(printk("scsi(%ld): %s failed, "
|
||||||
"rejected request:\n", vha->host_no,
|
"rejected request on port_id: %02x%02x%02x\n",
|
||||||
routine));
|
vha->host_no, routine,
|
||||||
|
vha->d_id.b.domain, vha->d_id.b.area,
|
||||||
|
vha->d_id.b.al_pa));
|
||||||
DEBUG2_3(qla2x00_dump_buffer(
|
DEBUG2_3(qla2x00_dump_buffer(
|
||||||
(uint8_t *)&ct_rsp->header,
|
(uint8_t *)&ct_rsp->header,
|
||||||
sizeof(struct ct_rsp_hdr)));
|
sizeof(struct ct_rsp_hdr)));
|
||||||
|
@ -147,8 +152,10 @@ qla2x00_chk_ms_status(scsi_qla_host_t *vha, ms_iocb_entry_t *ms_pkt,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DEBUG2_3(printk("scsi(%ld): %s failed, completion "
|
DEBUG2_3(printk("scsi(%ld): %s failed, completion "
|
||||||
"status (%x).\n", vha->host_no, routine,
|
"status (%x) on port_id: %02x%02x%02x.\n",
|
||||||
comp_status));
|
vha->host_no, routine, comp_status,
|
||||||
|
vha->d_id.b.domain, vha->d_id.b.area,
|
||||||
|
vha->d_id.b.al_pa));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче