summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2019-06-04 10:31:44 -0700
committerKalle Valo <kvalo@codeaurora.org>2019-06-25 07:46:33 +0300
commit2fc0aa454473a5f528cdc3e357da4489d0ccc6ee (patch)
treed6c6bf66269b858d512202e2fc9d13593b75eafb /drivers/net/wireless/marvell
parentf7369179ad32000973fc7a0a76603e0b41792b52 (diff)
downloadlinux-stable-2fc0aa454473a5f528cdc3e357da4489d0ccc6ee.tar.gz
linux-stable-2fc0aa454473a5f528cdc3e357da4489d0ccc6ee.tar.bz2
linux-stable-2fc0aa454473a5f528cdc3e357da4489d0ccc6ee.zip
mwifiex: print PCI mmap with %pK
Unadorned '%p' has restrictive policies these days, such that it usually just prints garbage at early boot (see Documentation/core-api/printk-formats.rst, "kernel will print ``(ptrval)`` until it gathers enough entropy"). Annotating with %pK (for "kernel pointer") allows the kptr_restrict sysctl to control printing policy better. We might just as well drop this message entirely, but this fix was easy enough for now. Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c
index 82f58bf0fc43..b54f73e3d508 100644
--- a/drivers/net/wireless/marvell/mwifiex/pcie.c
+++ b/drivers/net/wireless/marvell/mwifiex/pcie.c
@@ -2959,7 +2959,7 @@ static int mwifiex_init_pcie(struct mwifiex_adapter *adapter)
goto err_iomap2;
}
- pr_notice("PCI memory map Virt0: %p PCI memory map Virt2: %p\n",
+ pr_notice("PCI memory map Virt0: %pK PCI memory map Virt2: %pK\n",
card->pci_mmap, card->pci_mmap1);
ret = mwifiex_pcie_alloc_buffers(adapter);