From: Michal Simek <michal.simek@amd.com>
Date: Wed, 5 Jun 2024 14:58:27 +0000 (+0200)
Subject: cmd: fwu: Also print information about size
X-Git-Tag: v2025.01-rc5-pxa1908~399^2~4^2~12
X-Git-Url: http://git.dujemihanovic.xyz/img/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=a53fb767cf62b300a6b975bc174c892bc103be17;p=u-boot.git

cmd: fwu: Also print information about size

It is useful when structure is also used for saving vendor data covered
by CRC32.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
---

diff --git a/cmd/fwu_mdata.c b/cmd/fwu_mdata.c
index 3c8be576ac..9c048d69a1 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);
 	printf("active_index: %#x\n", data->active_index);
 	printf("previous_active_index: %#x\n", data->previous_active_index);