Skip to contentSkip to conversation

lpfc: Quieten some printks

PATCH Applied Anton Blanchard 3 participants 3 messages Jul 13, 2020 – Jul 15, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lpfc: Quieten some printks

On a big box the lpfc driver emits a few thousand "Set Affinity" lines to the console. Reduce the priority of these from KERN_ERR to KERN_INFO, and also fix a few printks that had no log level.

---
 drivers/scsi/lpfc/lpfc_init.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/scsi/lpfc/lpfc_init.c +4 -4
index 6637f84a3d1b..daa41ddaf33d 100644
@@ -11008,7 +11008,7 @@ lpfc_cpu_affinity_check(struct lpfc_hba *phba, int vectors)
 		/* 1 to 1, the first LPFC_CPU_FIRST_IRQ cpus to a unique hdwq */
 		cpup->hdwq = idx;
 		idx++;
-		lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
+		lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
 				"3333 Set Affinity: CPU %d (phys %d core %d): "
 				"hdwq %d eq %d flg x%x\n",
 				cpu, cpup->phys_id, cpup->core_id,
@@ -11086,7 +11086,7 @@ lpfc_cpu_affinity_check(struct lpfc_hba *phba, int vectors)
 			start_cpu = first_cpu;
 		cpup->hdwq = new_cpup->hdwq;
  logit:
-		lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
+		lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
 				"3335 Set Affinity: CPU %d (phys %d core %d): "
 				"hdwq %d eq %d flg x%x\n",
 				cpu, cpup->phys_id, cpup->core_id,
@@ -13974,8 +13974,8 @@ lpfc_init(void)
 {
 	int error = 0;
 
-	printk(LPFC_MODULE_DESC "\n");
-	printk(LPFC_COPYRIGHT "\n");
+	pr_info(LPFC_MODULE_DESC "\n");
+	pr_info(LPFC_COPYRIGHT "\n");
 
 	error = misc_register(&lpfc_mgmt_dev);
 	if (error)
Signature · 1 line
2.26.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 32 lines · Anton Blanchard

On a big box the lpfc driver emits a few thousand "Set Affinity" lines to the console. Reduce the priority of these from KERN_ERR to KERN_INFO, and also fix a few printks that had no log level.

---
  drivers/scsi/lpfc/lpfc_init.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
drivers/scsi/lpfc/lpfc_init.c +2 -2
index 6637f84a3d1b..daa41ddaf33d 100644
@@ -11008,7 +11008,7 @@ lpfc_cpu_affinity_check(struct lpfc_hba *phba, int vectors)
  		/* 1 to 1, the first LPFC_CPU_FIRST_IRQ cpus to a unique hdwq */
  		cpup->hdwq = idx;
  		idx++;
-		lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
+		lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
  				"3333 Set Affinity: CPU %d (phys %d core %d): "
  				"hdwq %d eq %d flg x%x\n",
  				cpu, cpup->phys_id, cpup->core_id,
@@ -11086,7 +11086,7 @@ lpfc_cpu_affinity_check(struct lpfc_hba *phba, int vectors)
  			start_cpu = first_cpu;
  		cpup->hdwq = new_cpup->hdwq;
   logit:
-		lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
+		lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
  				"3335 Set Affinity: CPU %d (phys %d core %d): "
  				"hdwq %d eq %d flg x%x\n",
  				cpu, cpup->phys_id, cpup->core_id,

drivers/scsi/lpfc/lpfc_init.c lpfc_init(void) · line 13981

Quoted 10 lines
drivers/scsi/lpfc/lpfc_init.c +2 -2
@@ -13974,8 +13974,8 @@ lpfc_init(void)
  {
  	int error = 0;
 
-	printk(LPFC_MODULE_DESC "\n");
-	printk(LPFC_COPYRIGHT "\n");
+	pr_info(LPFC_MODULE_DESC "\n");
+	pr_info(LPFC_COPYRIGHT "\n");
 
  	error = misc_register(&lpfc_mgmt_dev);
  	if (error)

Certainly agree.

Thanks

-- james