[igt PATCH 1/6] intel_bios_reader: add more structured printout of headers

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

 



Make the different parts of the VBT stand out better in the output.

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

diff --git a/tools/intel_bios_reader.c b/tools/intel_bios_reader.c
index 3455296bc008..c7572bde8c7e 100644
--- a/tools/intel_bios_reader.c
+++ b/tools/intel_bios_reader.c
@@ -1648,13 +1648,19 @@ static void dump_headers(struct context *context)
 	const struct bdb_header *bdb = context->bdb;
 	int i, j = 0;
 
-	printf("VBT signature:\t\"%.*s\"\n",
+	printf("VBT header:\n");
+
+	printf("\tVBT signature:\t\"%.*s\"\n",
 	       (int)sizeof(vbt->signature), vbt->signature);
-	printf("VBT version:\t%d.%d\n", vbt->version / 100, vbt->version % 100);
+	printf("\tVBT version:\t%d.%d\n", vbt->version / 100, vbt->version % 100);
+	printf("\n");
 
-	printf("BDB signature:\t\"%.*s\"\n",
+	printf("BDB header:\n");
+
+	printf("\tBDB signature:\t\"%.*s\"\n",
 	       (int)sizeof(bdb->signature), bdb->signature);
-	printf("BDB version:\t%d\n", bdb->version);
+	printf("\tBDB version:\t%d\n", bdb->version);
+	printf("\n");
 
 	printf("BDB blocks present:");
 	for (i = 0; i < 256; i++) {
-- 
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