Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 178c3dfe authored by Russell King's avatar Russell King
Browse files

ARM: fix some printk formats



GCC 4.9 complains if we take the difference of two pointers, and it's
printed with "%d".  Fix this by using the proper flag - "t" for
ptrdiff_t.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 7fc15054
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -559,10 +559,10 @@ void __init mem_init(void)
#ifdef CONFIG_MODULES
#ifdef CONFIG_MODULES
			"    modules : 0x%08lx - 0x%08lx   (%4ld MB)\n"
			"    modules : 0x%08lx - 0x%08lx   (%4ld MB)\n"
#endif
#endif
			"      .text : 0x%p" " - 0x%p" "   (%4d kB)\n"
			"      .text : 0x%p" " - 0x%p" "   (%4td kB)\n"
			"      .init : 0x%p" " - 0x%p" "   (%4d kB)\n"
			"      .init : 0x%p" " - 0x%p" "   (%4td kB)\n"
			"      .data : 0x%p" " - 0x%p" "   (%4d kB)\n"
			"      .data : 0x%p" " - 0x%p" "   (%4td kB)\n"
			"       .bss : 0x%p" " - 0x%p" "   (%4d kB)\n",
			"       .bss : 0x%p" " - 0x%p" "   (%4td kB)\n",


			MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) +
			MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) +
				(PAGE_SIZE)),
				(PAGE_SIZE)),