scsi: lpfc: Remove D_ID swap log message from trace event logger
authorJustin Tee <justin.tee@broadcom.com>
Wed, 31 Jan 2024 18:50:59 +0000 (10:50 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Feb 2024 01:51:34 +0000 (20:51 -0500)
D_ID swaps are common during cable swaps in a SAN.  Thus, there's no reason
to log the event at a KERN_ERR level with the trace event logger.

Change the log level to KERN_INFO and the normal LOG_ELS flag.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240131185112.149731-5-justintee8345@gmail.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nportdisc.c

index b147304b01fa1be28b58fd36865f397ef84a0d08..0bc93f346d90d6e90598da395ea7346757154ccf 100644 (file)
@@ -434,7 +434,7 @@ lpfc_rcv_plogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
                }
                if (nlp_portwwn != 0 &&
                    nlp_portwwn != wwn_to_u64(sp->portName.u.wwn))
-                       lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT,
+                       lpfc_printf_vlog(vport, KERN_INFO, LOG_ELS,
                                         "0143 PLOGI recv'd from DID: x%x "
                                         "WWPN changed: old %llx new %llx\n",
                                         ndlp->nlp_DID,