[PATCH v2] cmd: fwu: Also print information about size
Ilias Apalodimas
ilias.apalodimas at linaro.org
Thu Jun 6 10:23:21 CEST 2024
This isn't needed v1 [0] is better
[0] https://lore.kernel.org/u-boot/6ecddda9-0823-4512-b33c-787eef615181@amd.com/
On Thu, 6 Jun 2024 at 09:35, 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>
> ---
>
> Changes in v2:
> - print it only in mdata v2 version
>
> cmd/fwu_mdata.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/cmd/fwu_mdata.c b/cmd/fwu_mdata.c
> index 6d91935b9b54..56654ba1b93c 100644
> --- a/cmd/fwu_mdata.c
> +++ b/cmd/fwu_mdata.c
> @@ -27,6 +27,7 @@ static void print_mdata(struct fwu_data *data)
> printf("previous_active_index: %#x\n", data->previous_active_index);
>
> if (data->version == 2) {
> + printf("size: %#x\n", data->metadata_size);
> for (i = 0; i < 4; i++)
> printf("bank_state[%d]: %#x\n",
> i, data->bank_state[i]);
> --
> 2.40.1
>
More information about the U-Boot
mailing list