aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2fc/bnx2fc_hwi.c
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2011-06-28 02:30:53 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-07-26 05:54:41 -0400
commitb2a554ff9ad5cdd8d00dac168f2bb3db7ccedb61 (patch)
tree76980d7b7724fce06b7a12d7b2e3a19ad39d08d3 /drivers/scsi/bnx2fc/bnx2fc_hwi.c
parent0ac2377b61089e160d8e13b03cfdec89572cd741 (diff)
[SCSI] bnx2fc: Replace printks with KERN_ALERT to KERN_ERR/KERN_INFO
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc_hwi.c')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_hwi.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_hwi.c b/drivers/scsi/bnx2fc/bnx2fc_hwi.c
index 09bdd9b88d1a..b41deb64aff1 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_hwi.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_hwi.c
@@ -781,7 +781,7 @@ void bnx2fc_process_cq_compl(struct bnx2fc_rport *tgt, u16 wqe)
781 spin_lock_bh(&tgt->tgt_lock); 781 spin_lock_bh(&tgt->tgt_lock);
782 xid = wqe & FCOE_PEND_WQ_CQE_TASK_ID; 782 xid = wqe & FCOE_PEND_WQ_CQE_TASK_ID;
783 if (xid >= BNX2FC_MAX_TASKS) { 783 if (xid >= BNX2FC_MAX_TASKS) {
784 printk(KERN_ALERT PFX "ERROR:xid out of range\n"); 784 printk(KERN_ERR PFX "ERROR:xid out of range\n");
785 spin_unlock_bh(&tgt->tgt_lock); 785 spin_unlock_bh(&tgt->tgt_lock);
786 return; 786 return;
787 } 787 }
@@ -983,7 +983,7 @@ static void bnx2fc_fastpath_notification(struct bnx2fc_hba *hba,
983 struct bnx2fc_rport *tgt = hba->tgt_ofld_list[conn_id]; 983 struct bnx2fc_rport *tgt = hba->tgt_ofld_list[conn_id];
984 984
985 if (!tgt) { 985 if (!tgt) {
986 printk(KERN_ALERT PFX "conn_id 0x%x not valid\n", conn_id); 986 printk(KERN_ERR PFX "conn_id 0x%x not valid\n", conn_id);
987 return; 987 return;
988 } 988 }
989 989
@@ -1012,7 +1012,7 @@ static void bnx2fc_process_ofld_cmpl(struct bnx2fc_hba *hba,
1012 context_id = ofld_kcqe->fcoe_conn_context_id; 1012 context_id = ofld_kcqe->fcoe_conn_context_id;
1013 tgt = hba->tgt_ofld_list[conn_id]; 1013 tgt = hba->tgt_ofld_list[conn_id];
1014 if (!tgt) { 1014 if (!tgt) {
1015 printk(KERN_ALERT PFX "ERROR:ofld_cmpl: No pending ofld req\n"); 1015 printk(KERN_ERR PFX "ERROR:ofld_cmpl: No pending ofld req\n");
1016 return; 1016 return;
1017 } 1017 }
1018 BNX2FC_TGT_DBG(tgt, "Entered ofld compl - context_id = 0x%x\n", 1018 BNX2FC_TGT_DBG(tgt, "Entered ofld compl - context_id = 0x%x\n",
@@ -1040,7 +1040,7 @@ static void bnx2fc_process_ofld_cmpl(struct bnx2fc_hba *hba,
1040 /* now enable the session */ 1040 /* now enable the session */
1041 rc = bnx2fc_send_session_enable_req(port, tgt); 1041 rc = bnx2fc_send_session_enable_req(port, tgt);
1042 if (rc) { 1042 if (rc) {
1043 printk(KERN_ALERT PFX "enable session failed\n"); 1043 printk(KERN_ERR PFX "enable session failed\n");
1044 goto ofld_cmpl_err; 1044 goto ofld_cmpl_err;
1045 } 1045 }
1046 } 1046 }
@@ -1070,7 +1070,7 @@ static void bnx2fc_process_enable_conn_cmpl(struct bnx2fc_hba *hba,
1070 conn_id = ofld_kcqe->fcoe_conn_id; 1070 conn_id = ofld_kcqe->fcoe_conn_id;
1071 tgt = hba->tgt_ofld_list[conn_id]; 1071 tgt = hba->tgt_ofld_list[conn_id];
1072 if (!tgt) { 1072 if (!tgt) {
1073 printk(KERN_ALERT PFX "ERROR:enbl_cmpl: No pending ofld req\n"); 1073 printk(KERN_ERR PFX "ERROR:enbl_cmpl: No pending ofld req\n");
1074 return; 1074 return;
1075 } 1075 }
1076 1076
@@ -1082,7 +1082,7 @@ static void bnx2fc_process_enable_conn_cmpl(struct bnx2fc_hba *hba,
1082 * and enable 1082 * and enable
1083 */ 1083 */
1084 if (tgt->context_id != context_id) { 1084 if (tgt->context_id != context_id) {
1085 printk(KERN_ALERT PFX "context id mis-match\n"); 1085 printk(KERN_ERR PFX "context id mis-match\n");
1086 return; 1086 return;
1087 } 1087 }
1088 if (hba != tgt->port->priv) { 1088 if (hba != tgt->port->priv) {
@@ -1114,14 +1114,14 @@ static void bnx2fc_process_conn_disable_cmpl(struct bnx2fc_hba *hba,
1114 conn_id = disable_kcqe->fcoe_conn_id; 1114 conn_id = disable_kcqe->fcoe_conn_id;
1115 tgt = hba->tgt_ofld_list[conn_id]; 1115 tgt = hba->tgt_ofld_list[conn_id];
1116 if (!tgt) { 1116 if (!tgt) {
1117 printk(KERN_ALERT PFX "ERROR: disable_cmpl: No disable req\n"); 1117 printk(KERN_ERR PFX "ERROR: disable_cmpl: No disable req\n");
1118 return; 1118 return;
1119 } 1119 }
1120 1120
1121 BNX2FC_TGT_DBG(tgt, PFX "disable_cmpl: conn_id %d\n", conn_id); 1121 BNX2FC_TGT_DBG(tgt, PFX "disable_cmpl: conn_id %d\n", conn_id);
1122 1122
1123 if (disable_kcqe->completion_status) { 1123 if (disable_kcqe->completion_status) {
1124 printk(KERN_ALERT PFX "ERROR: Disable failed with cmpl status %d\n", 1124 printk(KERN_ERR PFX "Disable failed with cmpl status %d\n",
1125 disable_kcqe->completion_status); 1125 disable_kcqe->completion_status);
1126 return; 1126 return;
1127 } else { 1127 } else {
@@ -1143,14 +1143,14 @@ static void bnx2fc_process_conn_destroy_cmpl(struct bnx2fc_hba *hba,
1143 conn_id = destroy_kcqe->fcoe_conn_id; 1143 conn_id = destroy_kcqe->fcoe_conn_id;
1144 tgt = hba->tgt_ofld_list[conn_id]; 1144 tgt = hba->tgt_ofld_list[conn_id];
1145 if (!tgt) { 1145 if (!tgt) {
1146 printk(KERN_ALERT PFX "destroy_cmpl: No destroy req\n"); 1146 printk(KERN_ERR PFX "destroy_cmpl: No destroy req\n");
1147 return; 1147 return;
1148 } 1148 }
1149 1149
1150 BNX2FC_TGT_DBG(tgt, "destroy_cmpl: conn_id %d\n", conn_id); 1150 BNX2FC_TGT_DBG(tgt, "destroy_cmpl: conn_id %d\n", conn_id);
1151 1151
1152 if (destroy_kcqe->completion_status) { 1152 if (destroy_kcqe->completion_status) {
1153 printk(KERN_ALERT PFX "Destroy conn failed, cmpl status %d\n", 1153 printk(KERN_ERR PFX "Destroy conn failed, cmpl status %d\n",
1154 destroy_kcqe->completion_status); 1154 destroy_kcqe->completion_status);
1155 return; 1155 return;
1156 } else { 1156 } else {
@@ -1182,6 +1182,7 @@ static void bnx2fc_init_failure(struct bnx2fc_hba *hba, u32 err_code)
1182 break; 1182 break;
1183 case FCOE_KCQE_COMPLETION_STATUS_WRONG_HSI_VERSION: 1183 case FCOE_KCQE_COMPLETION_STATUS_WRONG_HSI_VERSION:
1184 printk(KERN_ERR PFX "init failure due to HSI mismatch\n"); 1184 printk(KERN_ERR PFX "init failure due to HSI mismatch\n");
1185 break;
1185 default: 1186 default:
1186 printk(KERN_ERR PFX "Unknown Error code %d\n", err_code); 1187 printk(KERN_ERR PFX "Unknown Error code %d\n", err_code);
1187 } 1188 }
@@ -1262,7 +1263,7 @@ void bnx2fc_indicate_kcqe(void *context, struct kcqe *kcq[],
1262 case FCOE_KCQE_OPCODE_FCOE_ERROR: 1263 case FCOE_KCQE_OPCODE_FCOE_ERROR:
1263 /* fall thru */ 1264 /* fall thru */
1264 default: 1265 default:
1265 printk(KERN_ALERT PFX "unknown opcode 0x%x\n", 1266 printk(KERN_ERR PFX "unknown opcode 0x%x\n",
1266 kcqe->op_code); 1267 kcqe->op_code);
1267 } 1268 }
1268 } 1269 }