[SCSI] iscsi: fix wrong order of opcode and itt in iscsi_handle_reject prompt
This patch makes reject messages show right value for opcode and itt, which is converse previously. Signed-off-by: Vaughan Cao <vaughan.cao@oracle.com> Acked-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
Родитель
bcde5b8113
Коммит
e5dbbe273f
|
@ -1013,13 +1013,13 @@ static int iscsi_handle_reject(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
|
||||||
iscsi_conn_printk(KERN_ERR, conn,
|
iscsi_conn_printk(KERN_ERR, conn,
|
||||||
"pdu (op 0x%x itt 0x%x) rejected "
|
"pdu (op 0x%x itt 0x%x) rejected "
|
||||||
"due to DataDigest error.\n",
|
"due to DataDigest error.\n",
|
||||||
rejected_pdu.itt, opcode);
|
opcode, rejected_pdu.itt);
|
||||||
break;
|
break;
|
||||||
case ISCSI_REASON_IMM_CMD_REJECT:
|
case ISCSI_REASON_IMM_CMD_REJECT:
|
||||||
iscsi_conn_printk(KERN_ERR, conn,
|
iscsi_conn_printk(KERN_ERR, conn,
|
||||||
"pdu (op 0x%x itt 0x%x) rejected. Too many "
|
"pdu (op 0x%x itt 0x%x) rejected. Too many "
|
||||||
"immediate commands.\n",
|
"immediate commands.\n",
|
||||||
rejected_pdu.itt, opcode);
|
opcode, rejected_pdu.itt);
|
||||||
/*
|
/*
|
||||||
* We only send one TMF at a time so if the target could not
|
* We only send one TMF at a time so if the target could not
|
||||||
* handle it, then it should get fixed (RFC mandates that
|
* handle it, then it should get fixed (RFC mandates that
|
||||||
|
@ -1059,8 +1059,8 @@ static int iscsi_handle_reject(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
|
||||||
default:
|
default:
|
||||||
iscsi_conn_printk(KERN_ERR, conn,
|
iscsi_conn_printk(KERN_ERR, conn,
|
||||||
"pdu (op 0x%x itt 0x%x) rejected. Reason "
|
"pdu (op 0x%x itt 0x%x) rejected. Reason "
|
||||||
"code 0x%x\n", rejected_pdu.itt,
|
"code 0x%x\n", rejected_pdu.opcode,
|
||||||
rejected_pdu.opcode, reject->reason);
|
rejected_pdu.itt, reject->reason);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче