Commit b2a554ff authored by Bhanu Prakash Gollapudi's avatar Bhanu Prakash Gollapudi Committed by James Bottomley

[SCSI] bnx2fc: Replace printks with KERN_ALERT to KERN_ERR/KERN_INFO

Signed-off-by: default avatarBhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 0ac2377b
...@@ -21,21 +21,21 @@ extern unsigned int bnx2fc_debug_level; ...@@ -21,21 +21,21 @@ extern unsigned int bnx2fc_debug_level;
#define BNX2FC_ELS_DBG(fmt, arg...) \ #define BNX2FC_ELS_DBG(fmt, arg...) \
BNX2FC_CHK_LOGGING(LOG_ELS, \ BNX2FC_CHK_LOGGING(LOG_ELS, \
printk(KERN_ALERT PFX fmt, ##arg)) printk(KERN_INFO PFX fmt, ##arg))
#define BNX2FC_MISC_DBG(fmt, arg...) \ #define BNX2FC_MISC_DBG(fmt, arg...) \
BNX2FC_CHK_LOGGING(LOG_MISC, \ BNX2FC_CHK_LOGGING(LOG_MISC, \
printk(KERN_ALERT PFX fmt, ##arg)) printk(KERN_INFO PFX fmt, ##arg))
#define BNX2FC_IO_DBG(io_req, fmt, arg...) \ #define BNX2FC_IO_DBG(io_req, fmt, arg...) \
do { \ do { \
if (!io_req || !io_req->port || !io_req->port->lport || \ if (!io_req || !io_req->port || !io_req->port->lport || \
!io_req->port->lport->host) \ !io_req->port->lport->host) \
BNX2FC_CHK_LOGGING(LOG_IO, \ BNX2FC_CHK_LOGGING(LOG_IO, \
printk(KERN_ALERT PFX "NULL " fmt, ##arg)); \ printk(KERN_INFO PFX "NULL " fmt, ##arg)); \
else \ else \
BNX2FC_CHK_LOGGING(LOG_IO, \ BNX2FC_CHK_LOGGING(LOG_IO, \
shost_printk(KERN_ALERT, \ shost_printk(KERN_INFO, \
(io_req)->port->lport->host, \ (io_req)->port->lport->host, \
PFX "xid:0x%x " fmt, \ PFX "xid:0x%x " fmt, \
(io_req)->xid, ##arg)); \ (io_req)->xid, ##arg)); \
...@@ -46,10 +46,10 @@ extern unsigned int bnx2fc_debug_level; ...@@ -46,10 +46,10 @@ extern unsigned int bnx2fc_debug_level;
if (!tgt || !tgt->port || !tgt->port->lport || \ if (!tgt || !tgt->port || !tgt->port->lport || \
!tgt->port->lport->host || !tgt->rport) \ !tgt->port->lport->host || !tgt->rport) \
BNX2FC_CHK_LOGGING(LOG_TGT, \ BNX2FC_CHK_LOGGING(LOG_TGT, \
printk(KERN_ALERT PFX "NULL " fmt, ##arg)); \ printk(KERN_INFO PFX "NULL " fmt, ##arg)); \
else \ else \
BNX2FC_CHK_LOGGING(LOG_TGT, \ BNX2FC_CHK_LOGGING(LOG_TGT, \
shost_printk(KERN_ALERT, \ shost_printk(KERN_INFO, \
(tgt)->port->lport->host, \ (tgt)->port->lport->host, \
PFX "port:%x " fmt, \ PFX "port:%x " fmt, \
(tgt)->rport->port_id, ##arg)); \ (tgt)->rport->port_id, ##arg)); \
...@@ -60,10 +60,10 @@ extern unsigned int bnx2fc_debug_level; ...@@ -60,10 +60,10 @@ extern unsigned int bnx2fc_debug_level;
do { \ do { \
if (!lport || !lport->host) \ if (!lport || !lport->host) \
BNX2FC_CHK_LOGGING(LOG_HBA, \ BNX2FC_CHK_LOGGING(LOG_HBA, \
printk(KERN_ALERT PFX "NULL " fmt, ##arg)); \ printk(KERN_INFO PFX "NULL " fmt, ##arg)); \
else \ else \
BNX2FC_CHK_LOGGING(LOG_HBA, \ BNX2FC_CHK_LOGGING(LOG_HBA, \
shost_printk(KERN_ALERT, lport->host, \ shost_printk(KERN_INFO, lport->host, \
PFX fmt, ##arg)); \ PFX fmt, ##arg)); \
} while (0) } while (0)
......
...@@ -274,12 +274,12 @@ static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op, ...@@ -274,12 +274,12 @@ static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op,
rc = fc_remote_port_chkready(rport); rc = fc_remote_port_chkready(rport);
if (rc) { if (rc) {
printk(KERN_ALERT PFX "els 0x%x: rport not ready\n", op); printk(KERN_ERR PFX "els 0x%x: rport not ready\n", op);
rc = -EINVAL; rc = -EINVAL;
goto els_err; goto els_err;
} }
if (lport->state != LPORT_ST_READY || !(lport->link_up)) { if (lport->state != LPORT_ST_READY || !(lport->link_up)) {
printk(KERN_ALERT PFX "els 0x%x: link is not ready\n", op); printk(KERN_ERR PFX "els 0x%x: link is not ready\n", op);
rc = -EINVAL; rc = -EINVAL;
goto els_err; goto els_err;
} }
...@@ -305,7 +305,7 @@ static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op, ...@@ -305,7 +305,7 @@ static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op,
mp_req = (struct bnx2fc_mp_req *)&(els_req->mp_req); mp_req = (struct bnx2fc_mp_req *)&(els_req->mp_req);
rc = bnx2fc_init_mp_req(els_req); rc = bnx2fc_init_mp_req(els_req);
if (rc == FAILED) { if (rc == FAILED) {
printk(KERN_ALERT PFX "ELS MP request init failed\n"); printk(KERN_ERR PFX "ELS MP request init failed\n");
spin_lock_bh(&tgt->tgt_lock); spin_lock_bh(&tgt->tgt_lock);
kref_put(&els_req->refcount, bnx2fc_cmd_release); kref_put(&els_req->refcount, bnx2fc_cmd_release);
spin_unlock_bh(&tgt->tgt_lock); spin_unlock_bh(&tgt->tgt_lock);
...@@ -324,7 +324,7 @@ static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op, ...@@ -324,7 +324,7 @@ static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op,
if ((op >= ELS_LS_RJT) && (op <= ELS_AUTH_ELS)) { if ((op >= ELS_LS_RJT) && (op <= ELS_AUTH_ELS)) {
memcpy(mp_req->req_buf, data, data_len); memcpy(mp_req->req_buf, data, data_len);
} else { } else {
printk(KERN_ALERT PFX "Invalid ELS op 0x%x\n", op); printk(KERN_ERR PFX "Invalid ELS op 0x%x\n", op);
els_req->cb_func = NULL; els_req->cb_func = NULL;
els_req->cb_arg = NULL; els_req->cb_arg = NULL;
spin_lock_bh(&tgt->tgt_lock); spin_lock_bh(&tgt->tgt_lock);
......
...@@ -387,12 +387,12 @@ static int bnx2fc_rcv(struct sk_buff *skb, struct net_device *dev, ...@@ -387,12 +387,12 @@ static int bnx2fc_rcv(struct sk_buff *skb, struct net_device *dev,
lport = hba->ctlr.lp; lport = hba->ctlr.lp;
if (unlikely(lport == NULL)) { if (unlikely(lport == NULL)) {
printk(KERN_ALERT PFX "bnx2fc_rcv: lport is NULL\n"); printk(KERN_ERR PFX "bnx2fc_rcv: lport is NULL\n");
goto err; goto err;
} }
if (unlikely(eth_hdr(skb)->h_proto != htons(ETH_P_FCOE))) { if (unlikely(eth_hdr(skb)->h_proto != htons(ETH_P_FCOE))) {
printk(KERN_ALERT PFX "bnx2fc_rcv: Wrong FC type frame\n"); printk(KERN_ERR PFX "bnx2fc_rcv: Wrong FC type frame\n");
goto err; goto err;
} }
...@@ -469,7 +469,7 @@ static void bnx2fc_recv_frame(struct sk_buff *skb) ...@@ -469,7 +469,7 @@ static void bnx2fc_recv_frame(struct sk_buff *skb)
fr = fcoe_dev_from_skb(skb); fr = fcoe_dev_from_skb(skb);
lport = fr->fr_dev; lport = fr->fr_dev;
if (unlikely(lport == NULL)) { if (unlikely(lport == NULL)) {
printk(KERN_ALERT PFX "Invalid lport struct\n"); printk(KERN_ERR PFX "Invalid lport struct\n");
kfree_skb(skb); kfree_skb(skb);
return; return;
} }
...@@ -1782,7 +1782,7 @@ static void bnx2fc_ulp_init(struct cnic_dev *dev) ...@@ -1782,7 +1782,7 @@ static void bnx2fc_ulp_init(struct cnic_dev *dev)
rc = dev->register_device(dev, CNIC_ULP_FCOE, rc = dev->register_device(dev, CNIC_ULP_FCOE,
(void *) hba); (void *) hba);
if (rc) if (rc)
printk(KERN_ALERT PFX "register_device failed, rc = %d\n", rc); printk(KERN_ERR PFX "register_device failed, rc = %d\n", rc);
else else
set_bit(BNX2FC_CNIC_REGISTERED, &hba->reg_with_cnic); set_bit(BNX2FC_CNIC_REGISTERED, &hba->reg_with_cnic);
} }
......
...@@ -781,7 +781,7 @@ void bnx2fc_process_cq_compl(struct bnx2fc_rport *tgt, u16 wqe) ...@@ -781,7 +781,7 @@ void bnx2fc_process_cq_compl(struct bnx2fc_rport *tgt, u16 wqe)
spin_lock_bh(&tgt->tgt_lock); spin_lock_bh(&tgt->tgt_lock);
xid = wqe & FCOE_PEND_WQ_CQE_TASK_ID; xid = wqe & FCOE_PEND_WQ_CQE_TASK_ID;
if (xid >= BNX2FC_MAX_TASKS) { if (xid >= BNX2FC_MAX_TASKS) {
printk(KERN_ALERT PFX "ERROR:xid out of range\n"); printk(KERN_ERR PFX "ERROR:xid out of range\n");
spin_unlock_bh(&tgt->tgt_lock); spin_unlock_bh(&tgt->tgt_lock);
return; return;
} }
...@@ -983,7 +983,7 @@ static void bnx2fc_fastpath_notification(struct bnx2fc_hba *hba, ...@@ -983,7 +983,7 @@ static void bnx2fc_fastpath_notification(struct bnx2fc_hba *hba,
struct bnx2fc_rport *tgt = hba->tgt_ofld_list[conn_id]; struct bnx2fc_rport *tgt = hba->tgt_ofld_list[conn_id];
if (!tgt) { if (!tgt) {
printk(KERN_ALERT PFX "conn_id 0x%x not valid\n", conn_id); printk(KERN_ERR PFX "conn_id 0x%x not valid\n", conn_id);
return; return;
} }
...@@ -1012,7 +1012,7 @@ static void bnx2fc_process_ofld_cmpl(struct bnx2fc_hba *hba, ...@@ -1012,7 +1012,7 @@ static void bnx2fc_process_ofld_cmpl(struct bnx2fc_hba *hba,
context_id = ofld_kcqe->fcoe_conn_context_id; context_id = ofld_kcqe->fcoe_conn_context_id;
tgt = hba->tgt_ofld_list[conn_id]; tgt = hba->tgt_ofld_list[conn_id];
if (!tgt) { if (!tgt) {
printk(KERN_ALERT PFX "ERROR:ofld_cmpl: No pending ofld req\n"); printk(KERN_ERR PFX "ERROR:ofld_cmpl: No pending ofld req\n");
return; return;
} }
BNX2FC_TGT_DBG(tgt, "Entered ofld compl - context_id = 0x%x\n", 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,7 +1040,7 @@ static void bnx2fc_process_ofld_cmpl(struct bnx2fc_hba *hba,
/* now enable the session */ /* now enable the session */
rc = bnx2fc_send_session_enable_req(port, tgt); rc = bnx2fc_send_session_enable_req(port, tgt);
if (rc) { if (rc) {
printk(KERN_ALERT PFX "enable session failed\n"); printk(KERN_ERR PFX "enable session failed\n");
goto ofld_cmpl_err; goto ofld_cmpl_err;
} }
} }
...@@ -1070,7 +1070,7 @@ static void bnx2fc_process_enable_conn_cmpl(struct bnx2fc_hba *hba, ...@@ -1070,7 +1070,7 @@ static void bnx2fc_process_enable_conn_cmpl(struct bnx2fc_hba *hba,
conn_id = ofld_kcqe->fcoe_conn_id; conn_id = ofld_kcqe->fcoe_conn_id;
tgt = hba->tgt_ofld_list[conn_id]; tgt = hba->tgt_ofld_list[conn_id];
if (!tgt) { if (!tgt) {
printk(KERN_ALERT PFX "ERROR:enbl_cmpl: No pending ofld req\n"); printk(KERN_ERR PFX "ERROR:enbl_cmpl: No pending ofld req\n");
return; return;
} }
...@@ -1082,7 +1082,7 @@ static void bnx2fc_process_enable_conn_cmpl(struct bnx2fc_hba *hba, ...@@ -1082,7 +1082,7 @@ static void bnx2fc_process_enable_conn_cmpl(struct bnx2fc_hba *hba,
* and enable * and enable
*/ */
if (tgt->context_id != context_id) { if (tgt->context_id != context_id) {
printk(KERN_ALERT PFX "context id mis-match\n"); printk(KERN_ERR PFX "context id mis-match\n");
return; return;
} }
if (hba != tgt->port->priv) { if (hba != tgt->port->priv) {
...@@ -1114,14 +1114,14 @@ static void bnx2fc_process_conn_disable_cmpl(struct bnx2fc_hba *hba, ...@@ -1114,14 +1114,14 @@ static void bnx2fc_process_conn_disable_cmpl(struct bnx2fc_hba *hba,
conn_id = disable_kcqe->fcoe_conn_id; conn_id = disable_kcqe->fcoe_conn_id;
tgt = hba->tgt_ofld_list[conn_id]; tgt = hba->tgt_ofld_list[conn_id];
if (!tgt) { if (!tgt) {
printk(KERN_ALERT PFX "ERROR: disable_cmpl: No disable req\n"); printk(KERN_ERR PFX "ERROR: disable_cmpl: No disable req\n");
return; return;
} }
BNX2FC_TGT_DBG(tgt, PFX "disable_cmpl: conn_id %d\n", conn_id); BNX2FC_TGT_DBG(tgt, PFX "disable_cmpl: conn_id %d\n", conn_id);
if (disable_kcqe->completion_status) { if (disable_kcqe->completion_status) {
printk(KERN_ALERT PFX "ERROR: Disable failed with cmpl status %d\n", printk(KERN_ERR PFX "Disable failed with cmpl status %d\n",
disable_kcqe->completion_status); disable_kcqe->completion_status);
return; return;
} else { } else {
...@@ -1143,14 +1143,14 @@ static void bnx2fc_process_conn_destroy_cmpl(struct bnx2fc_hba *hba, ...@@ -1143,14 +1143,14 @@ static void bnx2fc_process_conn_destroy_cmpl(struct bnx2fc_hba *hba,
conn_id = destroy_kcqe->fcoe_conn_id; conn_id = destroy_kcqe->fcoe_conn_id;
tgt = hba->tgt_ofld_list[conn_id]; tgt = hba->tgt_ofld_list[conn_id];
if (!tgt) { if (!tgt) {
printk(KERN_ALERT PFX "destroy_cmpl: No destroy req\n"); printk(KERN_ERR PFX "destroy_cmpl: No destroy req\n");
return; return;
} }
BNX2FC_TGT_DBG(tgt, "destroy_cmpl: conn_id %d\n", conn_id); BNX2FC_TGT_DBG(tgt, "destroy_cmpl: conn_id %d\n", conn_id);
if (destroy_kcqe->completion_status) { if (destroy_kcqe->completion_status) {
printk(KERN_ALERT PFX "Destroy conn failed, cmpl status %d\n", printk(KERN_ERR PFX "Destroy conn failed, cmpl status %d\n",
destroy_kcqe->completion_status); destroy_kcqe->completion_status);
return; return;
} else { } else {
...@@ -1182,6 +1182,7 @@ static void bnx2fc_init_failure(struct bnx2fc_hba *hba, u32 err_code) ...@@ -1182,6 +1182,7 @@ static void bnx2fc_init_failure(struct bnx2fc_hba *hba, u32 err_code)
break; break;
case FCOE_KCQE_COMPLETION_STATUS_WRONG_HSI_VERSION: case FCOE_KCQE_COMPLETION_STATUS_WRONG_HSI_VERSION:
printk(KERN_ERR PFX "init failure due to HSI mismatch\n"); printk(KERN_ERR PFX "init failure due to HSI mismatch\n");
break;
default: default:
printk(KERN_ERR PFX "Unknown Error code %d\n", err_code); printk(KERN_ERR PFX "Unknown Error code %d\n", err_code);
} }
...@@ -1262,7 +1263,7 @@ void bnx2fc_indicate_kcqe(void *context, struct kcqe *kcq[], ...@@ -1262,7 +1263,7 @@ void bnx2fc_indicate_kcqe(void *context, struct kcqe *kcq[],
case FCOE_KCQE_OPCODE_FCOE_ERROR: case FCOE_KCQE_OPCODE_FCOE_ERROR:
/* fall thru */ /* fall thru */
default: default:
printk(KERN_ALERT PFX "unknown opcode 0x%x\n", printk(KERN_ERR PFX "unknown opcode 0x%x\n",
kcqe->op_code); kcqe->op_code);
} }
} }
......
...@@ -702,7 +702,7 @@ static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) ...@@ -702,7 +702,7 @@ static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags)
hba = port->priv; hba = port->priv;
if (rport == NULL) { if (rport == NULL) {
printk(KERN_ALERT PFX "device_reset: rport is NULL\n"); printk(KERN_ERR PFX "device_reset: rport is NULL\n");
rc = FAILED; rc = FAILED;
goto tmf_err; goto tmf_err;
} }
...@@ -806,10 +806,10 @@ static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) ...@@ -806,10 +806,10 @@ static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags)
spin_unlock_bh(&tgt->tgt_lock); spin_unlock_bh(&tgt->tgt_lock);
if (!rc) { if (!rc) {
printk(KERN_ERR PFX "task mgmt command failed...\n"); BNX2FC_TGT_DBG(tgt, "task mgmt command failed...\n");
rc = FAILED; rc = FAILED;
} else { } else {
printk(KERN_ERR PFX "task mgmt command success...\n"); BNX2FC_TGT_DBG(tgt, "task mgmt command success...\n");
rc = SUCCESS; rc = SUCCESS;
} }
tmf_err: tmf_err:
...@@ -849,7 +849,7 @@ int bnx2fc_initiate_abts(struct bnx2fc_cmd *io_req) ...@@ -849,7 +849,7 @@ int bnx2fc_initiate_abts(struct bnx2fc_cmd *io_req)
} }
if (rport == NULL) { if (rport == NULL) {
printk(KERN_ALERT PFX "initiate_abts: rport is NULL\n"); printk(KERN_ERR PFX "initiate_abts: rport is NULL\n");
rc = FAILED; rc = FAILED;
goto abts_err; goto abts_err;
} }
...@@ -1031,7 +1031,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) ...@@ -1031,7 +1031,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd)
lport = shost_priv(sc_cmd->device->host); lport = shost_priv(sc_cmd->device->host);
if ((lport->state != LPORT_ST_READY) || !(lport->link_up)) { if ((lport->state != LPORT_ST_READY) || !(lport->link_up)) {
printk(KERN_ALERT PFX "eh_abort: link not ready\n"); printk(KERN_ERR PFX "eh_abort: link not ready\n");
return rc; return rc;
} }
...@@ -1062,7 +1062,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) ...@@ -1062,7 +1062,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd)
* io_req is no longer in the active_q. * io_req is no longer in the active_q.
*/ */
if (tgt->flush_in_prog) { if (tgt->flush_in_prog) {
printk(KERN_ALERT PFX "eh_abort: io_req (xid = 0x%x) " printk(KERN_ERR PFX "eh_abort: io_req (xid = 0x%x) "
"flush in progress\n", io_req->xid); "flush in progress\n", io_req->xid);
kref_put(&io_req->refcount, bnx2fc_cmd_release); kref_put(&io_req->refcount, bnx2fc_cmd_release);
spin_unlock_bh(&tgt->tgt_lock); spin_unlock_bh(&tgt->tgt_lock);
...@@ -1070,7 +1070,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) ...@@ -1070,7 +1070,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd)
} }
if (io_req->on_active_queue == 0) { if (io_req->on_active_queue == 0) {
printk(KERN_ALERT PFX "eh_abort: io_req (xid = 0x%x) " printk(KERN_ERR PFX "eh_abort: io_req (xid = 0x%x) "
"not on active_q\n", io_req->xid); "not on active_q\n", io_req->xid);
/* /*
* This condition can happen only due to the FW bug, * This condition can happen only due to the FW bug,
...@@ -1108,7 +1108,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) ...@@ -1108,7 +1108,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd)
set_bit(BNX2FC_FLAG_EH_ABORT, &io_req->req_flags); set_bit(BNX2FC_FLAG_EH_ABORT, &io_req->req_flags);
rc = bnx2fc_initiate_abts(io_req); rc = bnx2fc_initiate_abts(io_req);
} else { } else {
printk(KERN_ALERT PFX "eh_abort: io_req (xid = 0x%x) " printk(KERN_ERR PFX "eh_abort: io_req (xid = 0x%x) "
"already in abts processing\n", io_req->xid); "already in abts processing\n", io_req->xid);
kref_put(&io_req->refcount, bnx2fc_cmd_release); kref_put(&io_req->refcount, bnx2fc_cmd_release);
spin_unlock_bh(&tgt->tgt_lock); spin_unlock_bh(&tgt->tgt_lock);
...@@ -1378,7 +1378,7 @@ void bnx2fc_process_tm_compl(struct bnx2fc_cmd *io_req, ...@@ -1378,7 +1378,7 @@ void bnx2fc_process_tm_compl(struct bnx2fc_cmd *io_req,
fc_hdr->fh_r_ctl); fc_hdr->fh_r_ctl);
} }
if (!sc_cmd->SCp.ptr) { if (!sc_cmd->SCp.ptr) {
printk(KERN_ALERT PFX "tm_compl: SCp.ptr is NULL\n"); printk(KERN_ERR PFX "tm_compl: SCp.ptr is NULL\n");
return; return;
} }
switch (io_req->fcp_status) { switch (io_req->fcp_status) {
...@@ -1410,7 +1410,7 @@ void bnx2fc_process_tm_compl(struct bnx2fc_cmd *io_req, ...@@ -1410,7 +1410,7 @@ void bnx2fc_process_tm_compl(struct bnx2fc_cmd *io_req,
io_req->on_tmf_queue = 0; io_req->on_tmf_queue = 0;
} else { } else {
printk(KERN_ALERT PFX "Command not on active_cmd_queue!\n"); printk(KERN_ERR PFX "Command not on active_cmd_queue!\n");
return; return;
} }
...@@ -1597,7 +1597,7 @@ static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req, ...@@ -1597,7 +1597,7 @@ static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req,
if (rq_buff_len > num_rq * BNX2FC_RQ_BUF_SZ) { if (rq_buff_len > num_rq * BNX2FC_RQ_BUF_SZ) {
/* Invalid sense sense length. */ /* Invalid sense sense length. */
printk(KERN_ALERT PFX "invalid sns length %d\n", printk(KERN_ERR PFX "invalid sns length %d\n",
rq_buff_len); rq_buff_len);
/* reset rq_buff_len */ /* reset rq_buff_len */
rq_buff_len = num_rq * BNX2FC_RQ_BUF_SZ; rq_buff_len = num_rq * BNX2FC_RQ_BUF_SZ;
...@@ -1780,7 +1780,7 @@ void bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req, ...@@ -1780,7 +1780,7 @@ void bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req,
scsi_set_resid(sc_cmd, io_req->fcp_resid); scsi_set_resid(sc_cmd, io_req->fcp_resid);
break; break;
default: default:
printk(KERN_ALERT PFX "scsi_cmd_compl: fcp_status = %d\n", printk(KERN_ERR PFX "scsi_cmd_compl: fcp_status = %d\n",
io_req->fcp_status); io_req->fcp_status);
break; break;
} }
......
...@@ -403,7 +403,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport, ...@@ -403,7 +403,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport,
switch (event) { switch (event) {
case RPORT_EV_READY: case RPORT_EV_READY:
if (!rport) { if (!rport) {
printk(KERN_ALERT PFX "rport is NULL: ERROR!\n"); printk(KERN_ERR PFX "rport is NULL: ERROR!\n");
break; break;
} }
...@@ -415,7 +415,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport, ...@@ -415,7 +415,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport,
* We should not come here, as lport will * We should not come here, as lport will
* take care of fabric login * take care of fabric login
*/ */
printk(KERN_ALERT PFX "%x - rport_event_handler ERROR\n", printk(KERN_ERR PFX "%x - rport_event_handler ERROR\n",
rdata->ids.port_id); rdata->ids.port_id);
break; break;
} }
...@@ -483,7 +483,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport, ...@@ -483,7 +483,7 @@ void bnx2fc_rport_event_handler(struct fc_lport *lport,
break; break;
if (!rport) { if (!rport) {
printk(KERN_ALERT PFX "%x - rport not created Yet!!\n", printk(KERN_INFO PFX "%x - rport not created Yet!!\n",
port_id); port_id);
break; break;
} }
...@@ -633,7 +633,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -633,7 +633,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
tgt->sq = dma_alloc_coherent(&hba->pcidev->dev, tgt->sq_mem_size, tgt->sq = dma_alloc_coherent(&hba->pcidev->dev, tgt->sq_mem_size,
&tgt->sq_dma, GFP_KERNEL); &tgt->sq_dma, GFP_KERNEL);
if (!tgt->sq) { if (!tgt->sq) {
printk(KERN_ALERT PFX "unable to allocate SQ memory %d\n", printk(KERN_ERR PFX "unable to allocate SQ memory %d\n",
tgt->sq_mem_size); tgt->sq_mem_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
...@@ -646,7 +646,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -646,7 +646,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
tgt->cq = dma_alloc_coherent(&hba->pcidev->dev, tgt->cq_mem_size, tgt->cq = dma_alloc_coherent(&hba->pcidev->dev, tgt->cq_mem_size,
&tgt->cq_dma, GFP_KERNEL); &tgt->cq_dma, GFP_KERNEL);
if (!tgt->cq) { if (!tgt->cq) {
printk(KERN_ALERT PFX "unable to allocate CQ memory %d\n", printk(KERN_ERR PFX "unable to allocate CQ memory %d\n",
tgt->cq_mem_size); tgt->cq_mem_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
...@@ -659,7 +659,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -659,7 +659,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
tgt->rq = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_mem_size, tgt->rq = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_mem_size,
&tgt->rq_dma, GFP_KERNEL); &tgt->rq_dma, GFP_KERNEL);
if (!tgt->rq) { if (!tgt->rq) {
printk(KERN_ALERT PFX "unable to allocate RQ memory %d\n", printk(KERN_ERR PFX "unable to allocate RQ memory %d\n",
tgt->rq_mem_size); tgt->rq_mem_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
...@@ -671,7 +671,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -671,7 +671,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
tgt->rq_pbl = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_pbl_size, tgt->rq_pbl = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_pbl_size,
&tgt->rq_pbl_dma, GFP_KERNEL); &tgt->rq_pbl_dma, GFP_KERNEL);
if (!tgt->rq_pbl) { if (!tgt->rq_pbl) {
printk(KERN_ALERT PFX "unable to allocate RQ PBL %d\n", printk(KERN_ERR PFX "unable to allocate RQ PBL %d\n",
tgt->rq_pbl_size); tgt->rq_pbl_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
...@@ -697,7 +697,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -697,7 +697,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
tgt->xferq = dma_alloc_coherent(&hba->pcidev->dev, tgt->xferq_mem_size, tgt->xferq = dma_alloc_coherent(&hba->pcidev->dev, tgt->xferq_mem_size,
&tgt->xferq_dma, GFP_KERNEL); &tgt->xferq_dma, GFP_KERNEL);
if (!tgt->xferq) { if (!tgt->xferq) {
printk(KERN_ALERT PFX "unable to allocate XFERQ %d\n", printk(KERN_ERR PFX "unable to allocate XFERQ %d\n",
tgt->xferq_mem_size); tgt->xferq_mem_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
...@@ -711,7 +711,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -711,7 +711,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
tgt->confq = dma_alloc_coherent(&hba->pcidev->dev, tgt->confq_mem_size, tgt->confq = dma_alloc_coherent(&hba->pcidev->dev, tgt->confq_mem_size,
&tgt->confq_dma, GFP_KERNEL); &tgt->confq_dma, GFP_KERNEL);
if (!tgt->confq) { if (!tgt->confq) {
printk(KERN_ALERT PFX "unable to allocate CONFQ %d\n", printk(KERN_ERR PFX "unable to allocate CONFQ %d\n",
tgt->confq_mem_size); tgt->confq_mem_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
...@@ -726,7 +726,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -726,7 +726,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
tgt->confq_pbl_size, tgt->confq_pbl_size,
&tgt->confq_pbl_dma, GFP_KERNEL); &tgt->confq_pbl_dma, GFP_KERNEL);
if (!tgt->confq_pbl) { if (!tgt->confq_pbl) {
printk(KERN_ALERT PFX "unable to allocate CONFQ PBL %d\n", printk(KERN_ERR PFX "unable to allocate CONFQ PBL %d\n",
tgt->confq_pbl_size); tgt->confq_pbl_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
...@@ -751,7 +751,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -751,7 +751,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
tgt->conn_db_mem_size, tgt->conn_db_mem_size,
&tgt->conn_db_dma, GFP_KERNEL); &tgt->conn_db_dma, GFP_KERNEL);
if (!tgt->conn_db) { if (!tgt->conn_db) {
printk(KERN_ALERT PFX "unable to allocate conn_db %d\n", printk(KERN_ERR PFX "unable to allocate conn_db %d\n",
tgt->conn_db_mem_size); tgt->conn_db_mem_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
...@@ -767,7 +767,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, ...@@ -767,7 +767,7 @@ static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
&tgt->lcq_dma, GFP_KERNEL); &tgt->lcq_dma, GFP_KERNEL);
if (!tgt->lcq) { if (!tgt->lcq) {
printk(KERN_ALERT PFX "unable to allocate lcq %d\n", printk(KERN_ERR PFX "unable to allocate lcq %d\n",
tgt->lcq_mem_size); tgt->lcq_mem_size);
goto mem_alloc_failure; goto mem_alloc_failure;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment