On Mon, Nov 15, 2010 at 05:11:50PM -0500, Nicolas Pitre wrote:
It's what is done in the generic kernel code for page table entries.
printk(KERN_ALERT
"BUG: Bad page map in process %s pte:%08llx pmd:%08llx\n",
current->comm,
(long long)pte_val(pte), (long long)pmd_val(*pmd));
The places where this matters, there isn't any alignment between
lines to worry about:
printk(", *pmd=%08lx", pmd_val(*pmd));
printk(", *pte=%08lx", pte_val(*pte));
printk(", *ppte=%08lx", pte_val(pte[-PTRS_PER_PTE]));
in show_pte() are examples of what need changing.
--