[PATCH] cmd: fwu: Also print information about size

Ilias Apalodimas ilias.apalodimas at linaro.org
Wed Jun 5 17:09:37 CEST 2024


On Wed, 5 Jun 2024 at 17:58, Michal Simek <michal.simek at amd.com> wrote:
>
> It is useful when structure is also used for saving vendor data covered
> by CRC32.
>
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
>
>  cmd/fwu_mdata.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/cmd/fwu_mdata.c b/cmd/fwu_mdata.c
> index 3c8be576ac7a..9c048d69a131 100644
> --- a/cmd/fwu_mdata.c
> +++ b/cmd/fwu_mdata.c
> @@ -22,6 +22,7 @@ static void print_mdata(struct fwu_data *data)
>         printf("\tFWU Metadata\n");
>         printf("crc32: %#x\n", data->crc32);
>         printf("version: %#x\n", data->version);
> +       printf("size: %#x\n", data->metadata_size);

That's only available in v2
IS_ENABLED(CONFIG_FWU_MDATA_V1) etc?


>         printf("active_index: %#x\n", data->active_index);
>         printf("previous_active_index: %#x\n", data->previous_active_index);
>
> --
> 2.40.1
>

Cheers
/Ilias


More information about the U-Boot mailing list