mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
net: core: neighbour: Change the print format for addresses
Print format %p displays the kernel address while bypassing the kptr_restrict sysctl settings. Change the print format for addresses from %p to %pK. If kptr_restrict is enabled, addresses are printed as zeroes. To view the actual addresses, disable kptr_restrict by - echo 0 > /proc/sys/kernel/kptr_restrict . CRs-Fixed: 987041 Change-Id: I2eb33c63168ab26818dfdb3e11315f2ce8f24fa5 Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org> Signed-off-by: Chinmay Agarwal <chinagar@codeaurora.org>
This commit is contained in:
parent
2a6ff2fd81
commit
7eac529433
1 changed files with 1 additions and 1 deletions
|
|
@ -833,7 +833,7 @@ void neigh_destroy(struct neighbour *neigh)
|
|||
NEIGH_CACHE_STAT_INC(neigh->tbl, destroys);
|
||||
|
||||
if (!neigh->dead) {
|
||||
pr_warn("Destroying alive neighbour %p\n", neigh);
|
||||
pr_warn("Destroying alive neighbour %pK\n", neigh);
|
||||
dump_stack();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue