Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Zijun Hu and committed by
Rob Herring (Arm)
4ff899ee 3c48780d

+1 -1
+1 -1
drivers/of/fdt_address.c
··· 28 28 { 29 29 pr_debug("%s", s); 30 30 while(na--) 31 - pr_cont(" %08x", *(addr++)); 31 + pr_cont(" %08x", be32_to_cpu(*(addr++))); 32 32 pr_cont("\n"); 33 33 } 34 34 #else