Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=37f01d64d83705f82bb06eac8134acc8ef665565
Commit:     37f01d64d83705f82bb06eac8134acc8ef665565
Parent:     30686ba6d56858657829d3eb524ed73e5dc98d2b
Author:     David Gibson <[EMAIL PROTECTED]>
AuthorDate: Tue Apr 24 15:05:18 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Tue Apr 24 22:11:16 2007 +1000

    [POWERPC] Abolish PHYS_FMT macro from arch/powerpc
    
    32-bit powerpc systems define a macro, PHYS_FMT, giving a printf
    format string fragment for displaying physical addresses, since most
    32-bit powerpc platforms use 32-bit physical addresses but a few use
    64-bit physical addresses.
    
    This macro is used in exactly one place, a rare error message, where
    we can solve the problem more simply by just unconditionally casting
    the address up to 64-bit quantity before formatting it.
    
    This patch does so, meaning that as we bring MMU definitions from
    asm-ppc over to asm-powerpc, cleaning them up in the process, we don't
    need to implement this ugly macro (which additionally has a very bad
    name for something global).
    
    Signed-off-by: David Gibson <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/mm/pgtable_32.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c
index 8a2fc16..bca5603 100644
--- a/arch/powerpc/mm/pgtable_32.c
+++ b/arch/powerpc/mm/pgtable_32.c
@@ -183,8 +183,8 @@ __ioremap(phys_addr_t addr, unsigned long size, unsigned 
long flags)
         * mem_init() sets high_memory so only do the check after that.
         */
        if (mem_init_done && (p < virt_to_phys(high_memory))) {
-               printk("__ioremap(): phys addr "PHYS_FMT" is RAM lr %p\n", p,
-                      __builtin_return_address(0));
+               printk("__ioremap(): phys addr 0x%llx is RAM lr %p\n",
+                      (unsigned long long)p, __builtin_return_address(0));
                return NULL;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to