qcacmn: Use QDF_MAC_ADDR_FMT to print mac address

This change is to use QDF_MAC_ADDR_FMT to print mac address.

Change-Id: I2bd9beed55f8687356ba3b8a774cff32dbf61200
CRs-Fixed: 3676087
This commit is contained in:
Aasir Rasheed 2023-12-01 13:09:54 +05:30 committed by Ravindra Konda
parent 0c96c2267d
commit 6a00a21f34
2 changed files with 6 additions and 9 deletions

View File

@ -1,6 +1,6 @@
/*
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -211,10 +211,8 @@ QDF_STATUS target_if_crypto_set_key(struct wlan_objmgr_vdev *vdev,
qdf_mem_copy(&params.key_rsc_counter,
&req->keyrsc[0], sizeof(uint64_t));
target_if_debug("key_type %d, mac: %02x:%02x:%02x:%02x:%02x:%02x",
key_type, req->macaddr[0], req->macaddr[1],
req->macaddr[2], req->macaddr[3], req->macaddr[4],
req->macaddr[5]);
target_if_debug("key_type %d, mac: " QDF_MAC_ADDR_FMT,
key_type, QDF_MAC_ADDR_REF(req->macaddr));
if (wlan_vdev_mlme_get_opmode(vdev) != QDF_NAN_DISC_MODE) {
peer_exist = cdp_find_peer_exist(soc,

View File

@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -2838,9 +2838,8 @@ static void wlan_objmgr_psoc_peer_ref_print(struct wlan_objmgr_psoc *psoc,
vdev_id = wlan_vdev_get_id(wlan_peer_get_vdev(peer));
wlan_peer_obj_unlock(peer);
obj_mgr_alert("Peer MAC:%02x:%02x:%02x:%02x:%02x:%02x state:%d vdev_id:%d",
macaddr[0], macaddr[1], macaddr[2], macaddr[3],
macaddr[4], macaddr[5], obj_state, vdev_id);
obj_mgr_alert("Peer MAC:" QDF_MAC_ADDR_FMT "state:%d vdev_id:%d",
QDF_MAC_ADDR_REF(macaddr), obj_state, vdev_id);
wlan_objmgr_print_peer_ref_ids(peer, QDF_TRACE_LEVEL_FATAL);
}