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: reserved_mem: Use proper binary prefix

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>

authored by

Geert Uytterhoeven and committed by
Rob Herring
6ee7afba 25eba159

+1 -1
+1 -1
drivers/of/of_reserved_mem.c
··· 289 289 bool reusable = 290 290 (of_get_flat_dt_prop(node, "reusable", NULL)) != NULL; 291 291 292 - pr_info("%pa..%pa ( %lu KB ) %s %s %s\n", 292 + pr_info("%pa..%pa (%lu KiB) %s %s %s\n", 293 293 &rmem->base, &end, (unsigned long)(rmem->size / SZ_1K), 294 294 nomap ? "nomap" : "map", 295 295 reusable ? "reusable" : "non-reusable",