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

Michal Simek michal.simek at amd.com
Thu Jun 6 08:35:46 CEST 2024


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