[igt PATCH 5/6] intel_bios_reader: print more VBT and BDB header info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add more info and realign accordingly.

Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
---
 tools/intel_bios_reader.c | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/tools/intel_bios_reader.c b/tools/intel_bios_reader.c
index 6581abf51472..301cd1ccdcf0 100644
--- a/tools/intel_bios_reader.c
+++ b/tools/intel_bios_reader.c
@@ -1658,18 +1658,28 @@ static void dump_headers(struct context *context)
 	if (context->hexdump)
 		hex_dump(vbt, vbt->header_size);
 
-	printf("\tVBT signature:\t\"%.*s\"\n",
+	printf("\tVBT signature:\t\t\"%.*s\"\n",
 	       (int)sizeof(vbt->signature), vbt->signature);
-	printf("\tVBT version:\t%d.%d\n", vbt->version / 100, vbt->version % 100);
+	printf("\tVBT version:\t\t0x%04x (%d.%d)\n", vbt->version,
+	       vbt->version / 100, vbt->version % 100);
+	printf("\tVBT header size:\t0x%04x (%u)\n",
+	       vbt->header_size, vbt->header_size);
+	printf("\tVBT size:\t\t0x%04x (%u)\n", vbt->vbt_size, vbt->vbt_size);
+	printf("\tVBT checksum:\t\t0x%02x\n", vbt->vbt_checksum);
+	printf("\tBDB offset:\t\t0x%08x (%u)\n", vbt->bdb_offset, vbt->bdb_offset);
+
 	printf("\n");
 
 	printf("BDB header:\n");
 	if (context->hexdump)
 		hex_dump(bdb, bdb->header_size);
 
-	printf("\tBDB signature:\t\"%.*s\"\n",
+	printf("\tBDB signature:\t\t\"%.*s\"\n",
 	       (int)sizeof(bdb->signature), bdb->signature);
-	printf("\tBDB version:\t%d\n", bdb->version);
+	printf("\tBDB version:\t\t%d\n", bdb->version);
+	printf("\tBDB header size:\t0x%04x (%u)\n",
+	       bdb->header_size, bdb->header_size);
+	printf("\tBDB size:\t\t0x%04x (%u)\n", bdb->bdb_size, bdb->bdb_size);
 	printf("\n");
 
 	printf("BDB blocks present:");
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux