Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80714b09 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by Kalle Valo
Browse files

wil6210: fix format specifier for dma_addr_t



Fix format specifier used for dma_addr_t, namely use %pad
Debug print virtual address for the same buffer as well.

Fixes: dc16427b ("wil6210: Add pmc debug mechanism memory management")
Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 2c2d2faf
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -92,9 +92,9 @@ void wil_pmc_alloc(struct wil6210_priv *wil,
			GFP_KERNEL);
			GFP_KERNEL);


	wil_dbg_misc(wil,
	wil_dbg_misc(wil,
		     "%s: allocated pring %p. %zd x %d = total %zd bytes\n",
		     "%s: allocated pring %p => %pad. %zd x %d = total %zd bytes\n",
		     __func__,
		     __func__,
		     (void *)pmc->pring_pa,
		     pmc->pring_va, &pmc->pring_pa,
		     sizeof(struct vring_tx_desc),
		     sizeof(struct vring_tx_desc),
		     num_descriptors,
		     num_descriptors,
		     sizeof(struct vring_tx_desc) * num_descriptors);
		     sizeof(struct vring_tx_desc) * num_descriptors);