[PATCH 3/4] cmd: bdinfo: introduce bdinfo_print_size() helper

Simon Glass sjg at chromium.org
Thu Aug 25 17:01:10 CEST 2022


On Thu, 25 Aug 2022 at 00:41, Ovidiu Panait <ovpanait at gmail.com> wrote:
>
> 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;
>
> Signed-off-by: Ovidiu Panait <ovpanait at gmail.com>
> ---
>
>  cmd/bdinfo.c   |  7 +++++++
>  include/init.h | 13 +++++++++++++
>  2 files changed, 20 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list