wil6210: fix format specifier for dma_addr_t
authorVladimir Kondratiev <QCA_vkondrat@QCA.qualcomm.com>
Mon, 11 May 2015 16:10:48 +0000 (19:10 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 22 May 2015 10:30:08 +0000 (13:30 +0300)
Fix format specifier used for dma_addr_t, namely use %pad
Debug print virtual address for the same buffer as well.

Fixes: dc16427bbe65 ("wil6210: Add pmc debug mechanism memory management")
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/pmc.c

index 3cb4f35ebd05db353376c760c115fa5013940d0e..8a8cdc61b25ba46f44b97d6b5b698ed70ffecd60 100644 (file)
@@ -92,9 +92,9 @@ void wil_pmc_alloc(struct wil6210_priv *wil,
                        GFP_KERNEL);
 
        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__,
-                    (void *)pmc->pring_pa,
+                    pmc->pring_va, &pmc->pring_pa,
                     sizeof(struct vring_tx_desc),
                     num_descriptors,
                     sizeof(struct vring_tx_desc) * num_descriptors);