of/fdt: Dump __be32 array in CPU type order in of_dump_addr()

of_dump_addr() dumps __be32 array without conversion to CPU byte order
in advance, that will reduce log readability for little endian CPUs.

Fix by be32_to_cpu() conversion before dump.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20241206-of_core_fix-v1-6-dc28ed56bec3@quicinc.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
pull/1134/head
Zijun Hu 2024-12-06 08:52:32 +08:00 committed by Rob Herring (Arm)
parent 3c48780d48
commit 4ff899ee4e
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ static void __init of_dump_addr(const char *s, const __be32 *addr, int na)
{
pr_debug("%s", s);
while(na--)
pr_cont(" %08x", *(addr++));
pr_cont(" %08x", be32_to_cpu(*(addr++)));
pr_cont("\n");
}
#else