Browse Source

qcacmn: Fix argument type for vdev_ref_cnt

Typecast vdev->ref_cnt, from qdf_atomic_t to int,
using qdf_atomic_read() when logging as an
integer value.

Change-Id: I3432f5b8247a3031f1896d8964529a568fc3af19
CRs-Fixed: 3326096
Namita Nair 2 years ago
parent
commit
5ae67c7042
1 changed files with 3 additions and 2 deletions
  1. 3 2
      dp/wifi3.0/dp_main.c

+ 3 - 2
dp/wifi3.0/dp_main.c

@@ -8068,8 +8068,9 @@ QDF_STATUS dp_peer_mlo_setup(
 			 * during mld peer creation.
 			 * during mld peer creation.
 			 */
 			 */
 			dp_info("Primary link is not the first link. vdev: %pK,"
 			dp_info("Primary link is not the first link. vdev: %pK,"
-				"vdev_ref_cnt %d", mld_peer->vdev,
-				 mld_peer->vdev->ref_cnt);
+				"vdev_id %d vdev_ref_cnt %d",
+				mld_peer->vdev, vdev_id,
+				qdf_atomic_read(&mld_peer->vdev->ref_cnt));
 			/* release the ref to original dp_vdev */
 			/* release the ref to original dp_vdev */
 			dp_vdev_unref_delete(soc, mld_peer->vdev,
 			dp_vdev_unref_delete(soc, mld_peer->vdev,
 					     DP_MOD_ID_CHILD);
 					     DP_MOD_ID_CHILD);