From 659379aeffe692bd82b81e1cf3acf09691ddfc18 Mon Sep 17 00:00:00 2001 From: Santosh Anbu Date: Thu, 26 Sep 2019 15:34:13 +0530 Subject: [PATCH] qcacmn: Update log level of the debug message During vdev reference release if double free is attempted for, then the vdev references are printed. But the vdev id and the reference id for which the reference release was attempted is not printed. Add change to print this log, which will help in debugging vdev reference release related issues. Change-Id: I8c1942dc770a1dce2e25cda8c3c6aa8c056afb8e CRs-Fixed: 2531227 --- umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c b/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c index fd1d11854c..d7bb2dfc31 100644 --- a/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c +++ b/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c @@ -978,8 +978,8 @@ void wlan_objmgr_vdev_release_ref(struct wlan_objmgr_vdev *vdev, vdev_id = wlan_vdev_get_id(vdev); if (!qdf_atomic_read(&vdev->vdev_objmgr.ref_id_dbg[id])) { - obj_mgr_err("vdev (id:%d)ref cnt was not taken by %d", - vdev_id, id); + obj_mgr_alert("vdev (id:%d)ref cnt was not taken by %d", + vdev_id, id); wlan_objmgr_print_ref_ids(vdev->vdev_objmgr.ref_id_dbg, QDF_TRACE_LEVEL_FATAL); WLAN_OBJMGR_BUG(0); @@ -987,7 +987,7 @@ void wlan_objmgr_vdev_release_ref(struct wlan_objmgr_vdev *vdev, } if (!qdf_atomic_read(&vdev->vdev_objmgr.ref_cnt)) { - obj_mgr_err("vdev ref cnt is 0"); + obj_mgr_alert("vdev ref cnt is 0"); WLAN_OBJMGR_BUG(0); return; }