Quellcode durchsuchen

qcacmn: change logging with spin_lock held to debug level

Change the error level logging which are called by holding
the spin_lock to debug level to avoid printing to console.

Change-Id: If057087e808ed49000eba8b9795397a0cf35a357
CRs-Fixed: 2676235
Vevek Venkatesan vor 5 Jahren
Ursprung
Commit
e4a31a803d
1 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen
  1. 8 8
      hif/src/pcie/if_pci.c

+ 8 - 8
hif/src/pcie/if_pci.c

@@ -4513,10 +4513,10 @@ static int __hif_pm_runtime_prevent_suspend(struct hif_pci_softc
 
 	qdf_atomic_inc(&hif_sc->pm_stats.prevent_suspend);
 
-	HIF_ERROR("%s: in pm_state:%s ret: %d", __func__,
-		hif_pm_runtime_state_to_string(
-			qdf_atomic_read(&hif_sc->pm_state)),
-					ret);
+	hif_debug("%s: in pm_state:%s ret: %d", __func__,
+		  hif_pm_runtime_state_to_string(
+			  qdf_atomic_read(&hif_sc->pm_state)),
+		  ret);
 
 	return ret;
 }
@@ -4561,10 +4561,10 @@ static int __hif_pm_runtime_allow_suspend(struct hif_pci_softc *hif_sc,
 	hif_pm_runtime_mark_last_busy(hif_ctx);
 	ret = hif_pm_runtime_put_auto(hif_sc->dev);
 
-	HIF_ERROR("%s: in pm_state:%s ret: %d", __func__,
-		hif_pm_runtime_state_to_string(
-			qdf_atomic_read(&hif_sc->pm_state)),
-					ret);
+	hif_debug("%s: in pm_state:%s ret: %d", __func__,
+		  hif_pm_runtime_state_to_string(
+			  qdf_atomic_read(&hif_sc->pm_state)),
+		  ret);
 
 	qdf_atomic_inc(&hif_sc->pm_stats.allow_suspend);
 	return ret;