diff mbox series

wifi: ath12k: Fix devmem address prefix when logging

Message ID 20240523-ox-v1-1-112ae7350059@quicinc.com (mailing list archive)
State Accepted
Commit af69d862a8baa600b018f66aca8174b23c166a5f
Delegated to: Kalle Valo
Headers show
Series wifi: ath12k: Fix devmem address prefix when logging | expand

Commit Message

Jeff Johnson May 23, 2024, 3:18 p.m. UTC
Currently when ath12k QMI logging is enabled, messages such as the
following can be logged:

ath12k_pci 0000:03:00.0: devmem [0] start ox113000 size 20480

Replace ox% with 0x% to get a proper hex address prefix:

ath12k_pci 0000:03:00.0: devmem [0] start 0x113000 size 20480

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
---
 drivers/net/wireless/ath/ath12k/qmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


---
base-commit: 29c73fc794c83505066ee6db893b2a83ac5fac63
change-id: 20240521-ox-c27b044d1032

Comments

Kalle Valo May 28, 2024, 5:43 p.m. UTC | #1
Jeff Johnson <quic_jjohnson@quicinc.com> wrote:

> Currently when ath12k QMI logging is enabled, messages such as the
> following can be logged:
> 
> ath12k_pci 0000:03:00.0: devmem [0] start ox113000 size 20480
> 
> Replace ox% with 0x% to get a proper hex address prefix:
> 
> ath12k_pci 0000:03:00.0: devmem [0] start 0x113000 size 20480
> 
> Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

Patch applied to ath-next branch of ath.git, thanks.

af69d862a8ba wifi: ath12k: Fix devmem address prefix when logging
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath12k/qmi.c b/drivers/net/wireless/ath/ath12k/qmi.c
index 5484112859a6..e37c963b6903 100644
--- a/drivers/net/wireless/ath/ath12k/qmi.c
+++ b/drivers/net/wireless/ath/ath12k/qmi.c
@@ -2503,7 +2503,7 @@  static int ath12k_qmi_request_target_cap(struct ath12k_base *ab)
 			ab->qmi.dev_mem[i].size =
 				resp.dev_mem[i].size;
 			ath12k_dbg(ab, ATH12K_DBG_QMI,
-				   "devmem [%d] start ox%llx size %llu\n", i,
+				   "devmem [%d] start 0x%llx size %llu\n", i,
 				   ab->qmi.dev_mem[i].start,
 				   ab->qmi.dev_mem[i].size);
 		}