]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/prom: fix early DEBUG messages
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 14 Dec 2018 10:27:47 +0000 (10:27 +0000)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:33 +0000 (14:21 -0300)
commit27c8ff91305585dd512369a361a21d13c275a888
tree32997660577e94663775ca19b7c6fdd27a1d1d5c
parentb523942c0fe556b23d899266a89f69e70c8ac3a7
powerpc/prom: fix early DEBUG messages

BugLink: https://bugs.launchpad.net/bugs/1855787
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/powerpc/kernel/prom.c