diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2017-03-06 16:18:21 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-03-07 20:29:30 -0800 |
| commit | 2998febcabf077f444678bc956fe7fef20239191 (patch) | |
| tree | 7d829df60a9f3e2be64dcabca3a136c62da14aa8 | |
| parent | de4d6bdd9154d491510854413c3b1e9f3620a1f2 (diff) | |
qcacld-3.0: Reduce the log spam in wlan_hdd_driver_ops.c
Move the logs to appropriate log levels to reduce
the log spam in wlan_hdd_driver_ops.c
Change-Id: I5e57ac3a9af43cbe16b56a34fd33eaf570ced16e
CRs-Fixed: 2014745
| -rw-r--r-- | core/hdd/src/wlan_hdd_driver_ops.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 2d1ae90792ae..2257741180f8 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -236,7 +236,7 @@ int hdd_hif_open(struct device *dev, void *bdev, const hif_bus_id *bid, ret = hdd_init_cds_hif_context(hif_ctx); if (ret) { - hdd_err("Failed to set global HIF CDS Context err:%d", ret); + hdd_err("Failed to set global HIF CDS Context err: %d", ret); goto err_hif_close; } @@ -244,17 +244,17 @@ int hdd_hif_open(struct device *dev, void *bdev, const hif_bus_id *bid, (reinit == true) ? HIF_ENABLE_TYPE_REINIT : HIF_ENABLE_TYPE_PROBE); if (!QDF_IS_STATUS_SUCCESS(status)) { - hdd_err("hif_enable error = %d, reinit = %d", + hdd_err("hif_enable failed status: %d, reinit: %d", status, reinit); ret = qdf_status_to_os_return(status); goto err_hif_close; } else { ret = hdd_napi_create(); - hdd_info("hdd_napi_create returned: %d", ret); + hdd_debug("hdd_napi_create returned: %d", ret); if (ret == 0) hdd_warn("NAPI: no instances are created"); else if (ret < 0) { - hdd_err("NAPI creation error, rc: 0x%x, reinit = %d", + hdd_err("NAPI creation error, rc: 0x%x, reinit: %d", ret, reinit); ret = -EFAULT; goto err_hif_close; @@ -410,7 +410,7 @@ static void wlan_hdd_remove(struct device *dev) cds_set_unload_in_progress(true); if (!cds_wait_for_external_threads_completion(__func__)) - hdd_err("External threads are still active attempting driver unload anyway"); + hdd_warn("External threads are still active attempting driver unload anyway"); hdd_pld_driver_unloading(dev); @@ -549,7 +549,7 @@ static int __wlan_hdd_bus_suspend(pm_message_t state, uint32_t wow_flags) int err; int status; - hdd_info("starting bus suspend; event:%d, flags:%u", + hdd_debug("starting bus suspend; event:%d, flags:%u", state.event, wow_flags); err = wlan_hdd_validate_context(hdd_ctx); @@ -559,7 +559,7 @@ static int __wlan_hdd_bus_suspend(pm_message_t state, uint32_t wow_flags) } if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) { - hdd_info("Driver Module closed; return success"); + hdd_debug("Driver Module closed; return success"); return 0; } @@ -594,7 +594,7 @@ static int __wlan_hdd_bus_suspend(pm_message_t state, uint32_t wow_flags) goto resume_wma; } - hdd_info("bus suspend succeeded"); + hdd_debug("bus suspend succeeded"); return 0; resume_wma: @@ -607,7 +607,7 @@ resume_oltxrx: status = ol_txrx_bus_resume(); QDF_BUG(!status); done: - hdd_err("suspend failed, status = %d", err); + hdd_err("suspend failed, status: %d", err); return err; } @@ -660,7 +660,7 @@ static int __wlan_hdd_bus_suspend_noirq(void) } if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) { - hdd_info("Driver Module closed return success"); + hdd_debug("Driver Module closed return success"); return 0; } @@ -680,7 +680,7 @@ static int __wlan_hdd_bus_suspend_noirq(void) hdd_ctx->suspend_resume_stats.suspends++; - hdd_info("suspend_noirq done"); + hdd_debug("suspend_noirq done"); return 0; resume_hif_noirq: @@ -692,7 +692,7 @@ done: wlan_hdd_inc_suspend_stats(hdd_ctx, SUSPEND_FAIL_INITIAL_WAKEUP); } else { - hdd_err("suspend_noirq failed, status = %d", err); + hdd_err("suspend_noirq failed, status: %d", err); } return err; @@ -732,7 +732,7 @@ static int __wlan_hdd_bus_resume(void) if (cds_is_driver_recovering()) return 0; - hdd_info("starting bus resume"); + hdd_debug("starting bus resume"); status = wlan_hdd_validate_context(hdd_ctx); if (status) { @@ -741,7 +741,7 @@ static int __wlan_hdd_bus_resume(void) } if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) { - hdd_info("Driver Module closed; return success"); + hdd_debug("Driver Module closed; return success"); return 0; } @@ -776,7 +776,7 @@ static int __wlan_hdd_bus_resume(void) goto out; } - hdd_info("bus resume succeeded"); + hdd_debug("bus resume succeeded"); return 0; out: @@ -824,7 +824,7 @@ static int __wlan_hdd_bus_resume_noirq(void) } if (hdd_ctx->driver_status != DRIVER_MODULES_ENABLED) { - hdd_info("Driver Module closed return success"); + hdd_debug("Driver Module closed return success"); return 0; } @@ -838,7 +838,7 @@ static int __wlan_hdd_bus_resume_noirq(void) status = hif_bus_resume_noirq(hif_ctx); QDF_BUG(!status); - hdd_info("resume_noirq done"); + hdd_debug("resume_noirq done"); return status; } |
