Explorar el Código

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 hace 5 años
padre
commit
659379aeff
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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);
 	vdev_id = wlan_vdev_get_id(vdev);
 
 
 	if (!qdf_atomic_read(&vdev->vdev_objmgr.ref_id_dbg[id])) {
 	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,
 		wlan_objmgr_print_ref_ids(vdev->vdev_objmgr.ref_id_dbg,
 					  QDF_TRACE_LEVEL_FATAL);
 					  QDF_TRACE_LEVEL_FATAL);
 		WLAN_OBJMGR_BUG(0);
 		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)) {
 	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);
 		WLAN_OBJMGR_BUG(0);
 		return;
 		return;
 	}
 	}