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
This commit is contained in:
Namita Nair
2022-11-01 10:08:44 -07:00
committed by Madan Koyyalamudi
parent 45e1b1f348
commit 5ae67c7042

View File

@@ -8068,8 +8068,9 @@ QDF_STATUS dp_peer_mlo_setup(
* during mld peer creation.
*/
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 */
dp_vdev_unref_delete(soc, mld_peer->vdev,
DP_MOD_ID_CHILD);