[igt-dev] [PATCH i-g-t 07/23] tools/intel_vbt_decode: Dump the block size

Ville Syrjala ville.syrjala at linux.intel.com
Tue Jun 14 23:30:44 UTC 2022


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Knowing the size of each block can help in figuring out what should
be in there. Let's dump that.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_vbt_decode.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index e16e12d0423c..fdee0a41e071 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -1847,10 +1847,10 @@ static bool dump_section(struct context *context, int section_id)
 	}
 
 	if (dumper && dumper->name)
-		printf("BDB block %d - %s:\n", block->id, dumper->name);
+		printf("BDB block %d (%d bytes) - %s:\n", block->id, block->size, dumper->name);
 	else
-		printf("BDB block %d - Unknown, no decoding available:\n",
-		       block->id);
+		printf("BDB block %d (%d bytes) - Unknown, no decoding available:\n",
+		       block->id, block->size);
 
 	if (context->hexdump)
 		hex_dump_block(block);
-- 
2.35.1



More information about the igt-dev mailing list