Bladeren bron

qcacld-3.0: Fix compilation issue in mac addr printing

Currently, mac address ptr is passed to print the mac address
but the macro that prints mac address has an expansion to
multiple(four for now) %x's. So, the argument should also have
corresponding expansion. Fix it by passing expansion macro
as argument.

Change-Id: Ib4ea415eac1bfb2b3ef5ffa041669b8d6ef59579
CRs-Fixed: 3717930
Srinivas Dasari 1 jaar geleden
bovenliggende
commit
f0de044242
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3 2
      core/hdd/src/wlan_hdd_tx_power.c

+ 3 - 2
core/hdd/src/wlan_hdd_tx_power.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
- * Copyright (c) 2022-2023 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
@@ -387,7 +387,8 @@ next_link:
 		}
 
 		hdd_debug("%d tpc for bssid "QDF_MAC_ADDR_FMT" is_psd %d reg power %d 6ghz pwr type %d ap_constraint_power %d",
-			  i, link_bssid[i].bytes, reg_tpc_info[i].is_psd_power,
+			  i, QDF_MAC_ADDR_REF(link_bssid[i].bytes),
+			  reg_tpc_info[i].is_psd_power,
 			  reg_tpc_info[i].reg_max[0],
 			  reg_tpc_info[i].power_type_6g,
 			  reg_tpc_info[i].ap_constraint_power);