powerpc: Force printing of 'total_memory' to unsigned long long
authorTony Breeds <tony@bakeyournoodle.com>
Fri, 1 Aug 2008 01:38:39 +0000 (11:38 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Aug 2008 03:18:17 +0000 (13:18 +1000)
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>
arch/powerpc/mm/ppc_mmu_32.c

index c53145f619427e6bf3ba20605de27f8a32a027c9..6aa12081377531594bea592b94915da93904be78 100644 (file)
@@ -236,8 +236,8 @@ void __init MMU_init_hw(void)
 
        Hash_end = (struct hash_pte *) ((unsigned long)Hash + Hash_size);
 
-       printk("Total memory = %ldMB; using %ldkB for hash table (at %p)\n",
-              total_memory >> 20, Hash_size >> 10, Hash);
+       printk("Total memory = %lldMB; using %ldkB for hash table (at %p)\n",
+              (unsigned long long)(total_memory >> 20), Hash_size >> 10, Hash);
 
 
        /*