Parcourir la source

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
Santosh Anbu il y a 5 ans
Parent
commit
659379aeff
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c

+ 3 - 3
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;
 	}