This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to print virtual address using %pk, in kernel

I want print the virtual address by %pK, in kernel, after early console has been setup, but the out put is ____ptrval____, 

void __iomem *dist_base;

dist_base = of_iomap(node, 0);
pr_info("dist_base %pK\n", dist_base);

but the output is dist_base (____ptrval____)

thanks

best regards,

qianqian

Parents Reply Children
No data