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>
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 9a7d0bd..fc7a531 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -910,10 +910,12 @@
{
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 @@
{
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);
}
}