Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 7820/1: mm: cache-l2x0: Print the cache size in kB

Currently we have the following output from cache-l2x0:

l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size: 1048576 B

Using kB for the cache size can improve readability a bit:

l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size: 1024 kB

While at it use pr_info.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Fabio Estevam and committed by
Russell King
c477b8db 19a0519d

+3 -3
+3 -3
arch/arm/mm/cache-l2x0.c
··· 417 417 outer_cache.disable = l2x0_disable; 418 418 } 419 419 420 - printk(KERN_INFO "%s cache controller enabled\n", type); 421 - printk(KERN_INFO "l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d B\n", 422 - ways, cache_id, aux, l2x0_size); 420 + pr_info("%s cache controller enabled\n", type); 421 + pr_info("l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d kB\n", 422 + ways, cache_id, aux, l2x0_size >> 10); 423 423 } 424 424 425 425 #ifdef CONFIG_OF