]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: bdinfo: introduce bdinfo_print_size() helper
authorOvidiu Panait <ovpanait@gmail.com>
Mon, 29 Aug 2022 17:02:04 +0000 (20:02 +0300)
committerMichal Simek <michal.simek@amd.com>
Tue, 13 Sep 2022 09:32:48 +0000 (11:32 +0200)
commitae90d16ac78a2d7bd0327f71c26b46b5182315d3
tree2ae7c84ffeecf2e751382c2b4b412a307531b87c
parent3f351cd358a3581844f3cacdfe60710bf925d75d
cmd: bdinfo: introduce bdinfo_print_size() helper

Add bdinfo_print_size() helper to display size variables (such as cache
sizes) in bdinfo format. The size is printed as "xxx Bytes", "xxx KiB",
"xxx MiB", "xxx GiB", etc as needed;

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Reviewed-by: Jason Liu <jason.hui.liu@nxp.com>
Link: https://lore.kernel.org/r/20220829170205.1274484-3-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
cmd/bdinfo.c
include/init.h