[Intel-gfx] [igt PATCH 1/6] intel_bios_reader: add more structured printout of headers
Jani Nikula
jani.nikula at intel.com
Tue Jan 24 14:30:30 UTC 2017
Make the different parts of the VBT stand out better in the output.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
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
More information about the Intel-gfx
mailing list