[PATCH i-g-t 04/13] tools/intel_vbt_decode: Print the block min size

Ville Syrjala ville.syrjala at linux.intel.com
Fri Mar 22 20:41:16 UTC 2024


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

Print out our idea of the minimum size for each block. Can be
helpful in determining if we're potentially decoding stuff
that's not really present.

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

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index 1d1ba46db6e7..ead3dd6450e9 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -2672,8 +2672,8 @@ static bool dump_section(struct context *context, int section_id)
 		}
 	}
 
-	printf("BDB block %d (%d bytes) - %s%s:\n",
-	       block->id, block->size,
+	printf("BDB block %d (%d bytes, min %zu bytes) - %s%s:\n",
+	       block->id, block->size, block_min_size(context, block->id),
 	       dumper ? dumper->name : "Unknown",
 	       dumper && !dumper->dump ? ", no decoding available" : "");
 
-- 
2.43.2



More information about the igt-dev mailing list