powerpc/prom: fix early DEBUG messages
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 14 Dec 2018 10:27:47 +0000 (10:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:42 +0000 (09:20 +0100)
commitd02f0fc975b25d3934490d6625310fe95c04ae66
treef5a72e992c6c99ddf11cb17fef474de929f94427
parentb92e5db0f492026778cb31dfc479e50f33f75bca
powerpc/prom: fix early DEBUG messages

[ Upstream commit b18f0ae92b0a1db565c3e505fa87b6971ad3b641 ]

This patch fixes early DEBUG messages in prom.c:
- Use %px instead of %p to see the addresses
- Cast memblock_phys_mem_size() with (unsigned long long) to
avoid build failure when phys_addr_t is not 64 bits.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/prom.c