From bec5806fea861ab73d005016a649415f0d6eb68e Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Thu, 28 Jun 2018 11:03:32 -0700 Subject: [PATCH] qcacld-3.0: 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: I6633296fb1c82a3945cedc967de222410b9f5d9b CRs-Fixed: 2274413 --- components/pmo/dispatcher/src/wlan_pmo_obj_mgmt_api.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/pmo/dispatcher/src/wlan_pmo_obj_mgmt_api.c b/components/pmo/dispatcher/src/wlan_pmo_obj_mgmt_api.c index f0b9d956e3f8..f32742bc0e16 100644 --- a/components/pmo/dispatcher/src/wlan_pmo_obj_mgmt_api.c +++ b/components/pmo/dispatcher/src/wlan_pmo_obj_mgmt_api.c @@ -517,12 +517,9 @@ suspend_recovery: continue; resume_status = handler(psoc, arg); - if (QDF_IS_STATUS_ERROR(resume_status)) { - pmo_fatal("Non-recoverable failure occurred!"); - pmo_fatal("component %d failed to resume; status: %d", - i, resume_status); - QDF_DEBUG_PANIC(); - } + if (QDF_IS_STATUS_ERROR(resume_status)) + QDF_DEBUG_PANIC("component %d failed resume; status:%d", + i, resume_status); } exit_with_status: