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:37:41 +0000 (15:37 +0100)
commit6f95eb11d2d0d34b06ab1c5bce18237d68fedd2d
tree5b7fc8da5caedbe144fc4d72820c5c8990baeca8
parenta910cb308dc5c63c52c671eb14926fdc35c948cf
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