diff options
author | Tony Breeds <tony@bakeyournoodle.com> | 2008-07-31 21:38:39 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-08-03 23:18:17 -0400 |
commit | c7c8eede2739289df02a1ab297cc476c6f38dca7 (patch) | |
tree | 77a469e378d05ebc71b9e050d017675d8c3d71fc /arch/powerpc/mm | |
parent | fb61063587982b52304d62cdbb6a0a88d26ae7ef (diff) |
powerpc: Force printing of 'total_memory' to unsigned long long
total_memory is a 'phys_addr_t', Which can be either 64 or 32 bits.
Force printing as unsigned long long to silence the warning.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/ppc_mmu_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/ppc_mmu_32.c b/arch/powerpc/mm/ppc_mmu_32.c index c53145f61942..6aa120813775 100644 --- a/arch/powerpc/mm/ppc_mmu_32.c +++ b/arch/powerpc/mm/ppc_mmu_32.c | |||
@@ -236,8 +236,8 @@ void __init MMU_init_hw(void) | |||
236 | 236 | ||
237 | Hash_end = (struct hash_pte *) ((unsigned long)Hash + Hash_size); | 237 | Hash_end = (struct hash_pte *) ((unsigned long)Hash + Hash_size); |
238 | 238 | ||
239 | printk("Total memory = %ldMB; using %ldkB for hash table (at %p)\n", | 239 | printk("Total memory = %lldMB; using %ldkB for hash table (at %p)\n", |
240 | total_memory >> 20, Hash_size >> 10, Hash); | 240 | (unsigned long long)(total_memory >> 20), Hash_size >> 10, Hash); |
241 | 241 | ||
242 | 242 | ||
243 | /* | 243 | /* |