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 14:34:45 +0000 (15:34 +0100)
commit97f274ef3bc9a263d863656aa230324b15c4f46e
treeff6d4d7d6ef68073e414d590d3621889594135ae
parent94a5e819da6b8fd73d3464d23bd979b748e184b8
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