Skip to content

Commit 1db60fa

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Change default logging level for unsolicited CT MIB commands
For diagnostic purposes, it is convenient to automatically log unexpected CT MIB events without the need to set lpfc_log_verbose flags. So, change lpfc_ct_handle_mibreq's logging level from KERN_INFO to KERN_WARNING. Signed-off-by: Justin Tee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent d94fc48 commit 1db60fa

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/scsi/lpfc/lpfc_ct.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ lpfc_ct_handle_mibreq(struct lpfc_hba *phba, struct lpfc_iocbq *ctiocbq)
291291

292292
did = bf_get(els_rsp64_sid, &ctiocbq->wqe.xmit_els_rsp);
293293
if (ulp_status) {
294-
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
295-
"6438 Unsol CT: status:x%x/x%x did : x%x\n",
296-
ulp_status, ulp_word4, did);
294+
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
295+
"6438 Unsol CT: status:x%x/x%x did : x%x\n",
296+
ulp_status, ulp_word4, did);
297297
return;
298298
}
299299

@@ -303,17 +303,17 @@ lpfc_ct_handle_mibreq(struct lpfc_hba *phba, struct lpfc_iocbq *ctiocbq)
303303

304304
ndlp = lpfc_findnode_did(vport, did);
305305
if (!ndlp) {
306-
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
307-
"6439 Unsol CT: NDLP Not Found for DID : x%x",
308-
did);
306+
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
307+
"6439 Unsol CT: NDLP Not Found for DID : x%x",
308+
did);
309309
return;
310310
}
311311

312312
ct_req = (struct lpfc_sli_ct_request *)ctiocbq->cmd_dmabuf->virt;
313313

314314
mi_cmd = be16_to_cpu(ct_req->CommandResponse.bits.CmdRsp);
315-
lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
316-
"6442 : MI Cmd : x%x Not Supported\n", mi_cmd);
315+
lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS,
316+
"6442 MI Cmd : x%x Not Supported\n", mi_cmd);
317317
lpfc_ct_reject_event(ndlp, ct_req,
318318
bf_get(wqe_ctxt_tag,
319319
&ctiocbq->wqe.xmit_els_rsp.wqe_com),

0 commit comments

Comments
 (0)