[PATCH] ath10k: hide kernel addresses from logs using %pK format specifier

Joe Perches joe at perches.com
Fri Aug 5 10:57:42 PDT 2016


On Thu, 2016-08-04 at 19:21 +0530, c_mkenna at qti.qualcomm.com wrote:
> From: Maharaja Kennadyrajan <c_mkenna at qti.qualcomm.com>
> 
> With the %pK format specifier we hide the kernel addresses
> with the help of kptr_restrict sysctl.
> In this patch, %p is changed to %pK in the driver code.
> 
> The sysctl is documented in Documentation/sysctl/kernel.txt.

Maybe %p should follow %pK and only show kernel .text addresses
by default and any other address as 0 unless the sysctl is set.




More information about the ath10k mailing list