Skip to content

Commit

Permalink
powerpc: Force printing of 'total_memory' to unsigned long long
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tony Breeds authored and Paul Mackerras committed Aug 4, 2008
1 parent fb61063 commit c7c8eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/mm/ppc_mmu_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);


/*
Expand Down

0 comments on commit c7c8eed

Please sign in to comment.