diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-05-04 02:47:51 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 06:31:14 -0400 |
commit | 0aeafb0cef401807fe7d2a50f298203659b668af (patch) | |
tree | a712863ca23caacea7496cb7d26fb48832ef5cb1 /include/asm-powerpc/pgtable-ppc32.h | |
parent | 2abb7019e2877e7f9b1d2432f5a5c36caca5ed1c (diff) |
[POWERPC] Kill off the PTE_FMT macro
32-bit powerpc uses a PTE_FMT macro to handle printk() formatting of
PTE entries (which can vary in type and size). Apparently there was a
good reason for it once, but with current compilers it's simpler just
to workaround the variation with a cast in the printk() itself
(there's only one use).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/pgtable-ppc32.h')
-rw-r--r-- | include/asm-powerpc/pgtable-ppc32.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-powerpc/pgtable-ppc32.h b/include/asm-powerpc/pgtable-ppc32.h index 80c75474c65b..e704640b3e48 100644 --- a/include/asm-powerpc/pgtable-ppc32.h +++ b/include/asm-powerpc/pgtable-ppc32.h | |||
@@ -101,7 +101,8 @@ extern unsigned long ioremap_bot, ioremap_base; | |||
101 | #define KERNEL_PGD_PTRS (PTRS_PER_PGD-USER_PGD_PTRS) | 101 | #define KERNEL_PGD_PTRS (PTRS_PER_PGD-USER_PGD_PTRS) |
102 | 102 | ||
103 | #define pte_ERROR(e) \ | 103 | #define pte_ERROR(e) \ |
104 | printk("%s:%d: bad pte "PTE_FMT".\n", __FILE__, __LINE__, pte_val(e)) | 104 | printk("%s:%d: bad pte %llx.\n", __FILE__, __LINE__, \ |
105 | (unsigned long long)pte_val(e)) | ||
105 | #define pmd_ERROR(e) \ | 106 | #define pmd_ERROR(e) \ |
106 | printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e)) | 107 | printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e)) |
107 | #define pgd_ERROR(e) \ | 108 | #define pgd_ERROR(e) \ |