提交 0663bb6c 编写于 作者: R Randy Dunlap 提交者: Thomas Gleixner

mmiotrace: fix printk format

Fix gcc printk format warnings:

next-20080415/arch/x86/mm/mmio-mod.c: In function 'print_pte':
next-20080415/arch/x86/mm/mmio-mod.c:154: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'pteval_t'
next-20080415/arch/x86/mm/mmio-mod.c:154: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'pteval_t'
next-20080415/arch/x86/mm/mmio-mod.c: At top level:
next-20080415/arch/x86/mm/mmio-mod.c:403: warning: 'downed_cpus' defined but not used
Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 c6c67c1a
...@@ -150,8 +150,9 @@ static void print_pte(unsigned long address) ...@@ -150,8 +150,9 @@ static void print_pte(unsigned long address)
"0x%08lx\n", address); "0x%08lx\n", address);
BUG(); BUG();
} }
pr_info(NAME "pte for 0x%lx: 0x%lx 0x%lx\n", address, pte_val(*pte), pr_info(NAME "pte for 0x%lx: 0x%llx 0x%llx\n", address,
pte_val(*pte) & _PAGE_PRESENT); (unsigned long long)pte_val(*pte),
(unsigned long long)pte_val(*pte) & _PAGE_PRESENT);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册