aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVaughan Cao <vaughan.cao@oracle.com>2014-01-08 21:21:34 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:19:00 -0400
commite5dbbe273f29e3de7f954abeba95ce986fafc532 (patch)
tree440d181593b1a7fdeba3eae6f240d74b4dff745f
parentbcde5b8113b932d958acedd4bb484a7f0131908e (diff)
[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>
-rw-r--r--drivers/scsi/libiscsi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 40462415291e..cd330c0e0fd5 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1013,13 +1013,13 @@ static int iscsi_handle_reject(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
1013 iscsi_conn_printk(KERN_ERR, conn, 1013 iscsi_conn_printk(KERN_ERR, conn,
1014 "pdu (op 0x%x itt 0x%x) rejected " 1014 "pdu (op 0x%x itt 0x%x) rejected "
1015 "due to DataDigest error.\n", 1015 "due to DataDigest error.\n",
1016 rejected_pdu.itt, opcode); 1016 opcode, rejected_pdu.itt);
1017 break; 1017 break;
1018 case ISCSI_REASON_IMM_CMD_REJECT: 1018 case ISCSI_REASON_IMM_CMD_REJECT:
1019 iscsi_conn_printk(KERN_ERR, conn, 1019 iscsi_conn_printk(KERN_ERR, conn,
1020 "pdu (op 0x%x itt 0x%x) rejected. Too many " 1020 "pdu (op 0x%x itt 0x%x) rejected. Too many "
1021 "immediate commands.\n", 1021 "immediate commands.\n",
1022 rejected_pdu.itt, opcode); 1022 opcode, rejected_pdu.itt);
1023 /* 1023 /*
1024 * We only send one TMF at a time so if the target could not 1024 * We only send one TMF at a time so if the target could not
1025 * handle it, then it should get fixed (RFC mandates that 1025 * 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,
1059 default: 1059 default:
1060 iscsi_conn_printk(KERN_ERR, conn, 1060 iscsi_conn_printk(KERN_ERR, conn,
1061 "pdu (op 0x%x itt 0x%x) rejected. Reason " 1061 "pdu (op 0x%x itt 0x%x) rejected. Reason "
1062 "code 0x%x\n", rejected_pdu.itt, 1062 "code 0x%x\n", rejected_pdu.opcode,
1063 rejected_pdu.opcode, reject->reason); 1063 rejected_pdu.itt, reject->reason);
1064 break; 1064 break;
1065 } 1065 }
1066 return rc; 1066 return rc;