From 0aeafb0cef401807fe7d2a50f298203659b668af Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 4 May 2007 16:47:51 +1000 Subject: [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 Signed-off-by: Paul Mackerras --- include/asm-powerpc/page_32.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/asm-powerpc/page_32.h') diff --git a/include/asm-powerpc/page_32.h b/include/asm-powerpc/page_32.h index 07f6d3cf5e5..374d0db37e1 100644 --- a/include/asm-powerpc/page_32.h +++ b/include/asm-powerpc/page_32.h @@ -14,11 +14,9 @@ #ifdef CONFIG_PTE_64BIT typedef unsigned long long pte_basic_t; #define PTE_SHIFT (PAGE_SHIFT - 3) /* 512 ptes per page */ -#define PTE_FMT "%16Lx" #else typedef unsigned long pte_basic_t; #define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */ -#define PTE_FMT "%.8lx" #endif struct page; -- cgit v1.2.3