OSDN Git Service

mwifiex: print PCI mmap with %pK
authorBrian Norris <briannorris@chromium.org>
Tue, 4 Jun 2019 17:31:44 +0000 (10:31 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 04:46:33 +0000 (07:46 +0300)
commit2fc0aa454473a5f528cdc3e357da4489d0ccc6ee
treed6c6bf66269b858d512202e2fc9d13593b75eafb
parentf7369179ad32000973fc7a0a76603e0b41792b52
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>
drivers/net/wireless/marvell/mwifiex/pcie.c