qcacmn: Move panic messages into QDF_DEBUG_PANIC

QDF_DEBUG_PANIC has recently gained a reason parameter. Move instance of
logging followed immediately by QDF_DEBUG_PANIC to single calls.

Change-Id: Ifc00be410621005e8494074ed00b1b7e44cc6a03
CRs-Fixed: 2271769
This commit is contained in:
Dustin Brown
2018-06-27 15:22:06 -07:00
committed by nshrivas
parent 9791957823
commit fe41df9c00
5 changed files with 19 additions and 33 deletions

View File

@@ -163,11 +163,6 @@ void qdf_mc_timer_manager_init(void)
}
qdf_export_symbol(qdf_mc_timer_manager_init);
static inline void qdf_mc_timer_panic(void)
{
QDF_DEBUG_PANIC();
}
static void qdf_mc_timer_print_list(qdf_list_t *timers)
{
QDF_STATUS status;
@@ -200,7 +195,7 @@ void qdf_mc_timer_check_for_leaks(void)
qdf_err("Timer leaks detected in %s domain!",
qdf_debug_domain_name(current_domain));
qdf_mc_timer_print_list(timers);
qdf_mc_timer_panic();
QDF_DEBUG_PANIC("Previously reported timer leaks detected");
}
static void qdf_mc_timer_free_leaked_timers(qdf_list_t *timers)
@@ -249,7 +244,7 @@ static void qdf_timer_clean(void)
return;
/* panic, if enabled */
qdf_mc_timer_panic();
QDF_DEBUG_PANIC("Previously reported timer leaks detected");
/* if we didn't crash, release the leaked timers */
for (i = 0; i < QDF_DEBUG_DOMAIN_COUNT; ++i)