[Intel-gfx] [igt PATCH 3/6] intel_bios_reader: add hex dumping of headers

Jani Nikula jani.nikula at intel.com
Tue Jan 24 14:30:32 UTC 2017


Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 tools/intel_bios_reader.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/intel_bios_reader.c b/tools/intel_bios_reader.c
index 83fc819b6cdc..9f75d850d3fb 100644
--- a/tools/intel_bios_reader.c
+++ b/tools/intel_bios_reader.c
@@ -1654,6 +1654,8 @@ static void dump_headers(struct context *context)
 	int i, j = 0;
 
 	printf("VBT header:\n");
+	if (context->hexdump)
+		hex_dump(vbt, vbt->header_size);
 
 	printf("\tVBT signature:\t\"%.*s\"\n",
 	       (int)sizeof(vbt->signature), vbt->signature);
@@ -1661,6 +1663,8 @@ static void dump_headers(struct context *context)
 	printf("\n");
 
 	printf("BDB header:\n");
+	if (context->hexdump)
+		hex_dump(bdb, bdb->header_size);
 
 	printf("\tBDB signature:\t\"%.*s\"\n",
 	       (int)sizeof(bdb->signature), bdb->signature);
-- 
2.1.4



More information about the Intel-gfx mailing list