UPSTREAM: of: reserved_mem: Use proper binary prefix

commit 6ee7afbabcee4d54024c46f8fc74314c69a04613 upstream

The printed reserved memory information uses the non-standard "K"
prefix, while all other printed values use proper binary prefixes.
Fix this by using "Ki" instead.

While at it, drop the superfluous spaces inside the parentheses, to
reduce printed line length.

Fixes: aeb9267eb6b1df99 ("of: reserved-mem: print out reserved-mem details during boot")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230216083725.1244817-1-geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Change-Id: Iddf8e8b71e4223e3a9e8b9de8f6144d0903ce505
This commit is contained in:
Geert Uytterhoeven
2023-02-16 09:37:25 +01:00
committed by Treehugger Robot
parent 7d6c6a1715
commit ddfd56a6ad

View File

@@ -291,7 +291,7 @@ void __init fdt_init_reserved_mem(void)
bool reusable =
(of_get_flat_dt_prop(node, "reusable", NULL)) != NULL;
pr_info("%pa..%pa ( %lu KB ) %s %s %s\n",
pr_info("%pa..%pa (%lu KiB) %s %s %s\n",
&rmem->base, &end, (unsigned long)(rmem->size / SZ_1K),
nomap ? "nomap" : "map",
reusable ? "reusable" : "non-reusable",