From 29514472085b43612abdb6ae50a0b46e4a60dec9 Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Fri, 25 Aug 2023 19:12:47 +0800 Subject: [PATCH] amdfwtool: Print more information when debug mode is set Change-Id: I08187c339ebbe84b183f3c6e53f0eea540620fbf Signed-off-by: Zheng Bao Reviewed-on: https://review.coreboot.org/c/coreboot/+/77505 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- util/amdfwtool/amdfwtool.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 9a7d0bd083..fc7a531f34 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -910,10 +910,12 @@ static void dump_psp_firmwares(amd_fw_entry *fw_table) { amd_fw_entry *index; - printf("PSP firmware components:"); + printf("PSP firmware components:\n"); for (index = fw_table; index->type != AMD_FW_INVALID; index++) { if (index->filename) - printf(" %2x: %s\n", index->type, index->filename); + printf(" %2x: level=%x, subprog=%x, inst=%x, %s\n", + index->type, index->level, index->subprog, index->inst, + index->filename); } } @@ -921,10 +923,11 @@ static void dump_bdt_firmwares(amd_bios_entry *fw_table) { amd_bios_entry *index; - printf("BIOS Directory Table (BDT) components:"); + printf("BIOS Directory Table (BDT) components:\n"); for (index = fw_table; index->type != AMD_BIOS_INVALID; index++) { if (index->filename) - printf(" %2x: %s\n", index->type, index->filename); + printf(" %2x: level=%x, %s\n", + index->type, index->level, index->filename); } }