[BUG] What is "__ptrval__" in my dmesg logs? Bad "%p" expansion?

From: Chris Rankin
Date: Sun Feb 03 2019 - 09:09:35 EST


I've suddenly realised that my kernel dmesg logs contain lines like:

[ 0.000000] found SMP MP-table at [mem 0x000f5c20-0x000f5c2f]
mapped at [(____ptrval____)]
[ 0.000000] Base memory trampoline at [(____ptrval____)] 98000 size 24576


[ 0.000000] percpu: Embedded 41 pages/cpu @(____ptrval____) s129112
r8192 d30632 u262144

This seems to have started ~ Linux 4.15.x, and it does look like it
might be a macro expansion problem.

This is also happening for me on a different machine which uses the
radeon.ko driver (vs the amdgpu.ko driver):

dev_info(rdev->dev, "fence driver on ring %d use gpu addr
0x%016llx and cpu addr 0x%p\n"

Does the kernel have a problem expanding "%p"?