summaryrefslogtreecommitdiff
path: root/util/amdfwtool/amdfwtool.c
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2023-08-25 19:12:47 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-08-30 12:56:10 +0000
commit29514472085b43612abdb6ae50a0b46e4a60dec9 (patch)
treed0ce85203c67552702ff2c23234b547c8c64f7e8 /util/amdfwtool/amdfwtool.c
parent310698cb9548a100e1be85274c292c5173994275 (diff)
amdfwtool: Print more information when debug mode is set
Change-Id: I08187c339ebbe84b183f3c6e53f0eea540620fbf Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77505 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/amdfwtool/amdfwtool.c')
-rw-r--r--util/amdfwtool/amdfwtool.c11
1 files 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);
}
}