Commit 96a8bac5 authored by Kumar Gala's avatar Kumar Gala

powerpc/fsl-booke: Fix compile warning

arch/powerpc/mm/fsl_booke_mmu.c: In function 'adjust_total_lowmem':
arch/powerpc/mm/fsl_booke_mmu.c:221: warning: format '%ld' expects type 'long int', but argument 3 has type 'phys_addr_t'
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 70fe3af8
...@@ -218,7 +218,7 @@ adjust_total_lowmem(void) ...@@ -218,7 +218,7 @@ adjust_total_lowmem(void)
p += sprintf(p, "0/"); p += sprintf(p, "0/");
p[-1] = '\0'; p[-1] = '\0';
pr_info("Memory CAM mapping: %s Mb, residual: %ldMb\n", buf, pr_info("Memory CAM mapping: %s Mb, residual: %dMb\n", buf,
(total_lowmem - __max_low_memory) >> 20); (unsigned int)((total_lowmem - __max_low_memory) >> 20));
__initial_memory_limit_addr = memstart_addr + __max_low_memory; __initial_memory_limit_addr = memstart_addr + __max_low_memory;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment