[PATCH i-g-t 17/20] tools/intel_vbt_decode: Use find_raw_section() to determine block presence
Ville Syrjala
ville.syrjala at linux.intel.com
Fri May 31 14:23:51 UTC 2024
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
We don't really want to report the generated block 41 as being
present in the VBT. Switch from find_section() to find_raw_section()
so that we only consider the blocks that are actually present in the
VBT.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tools/intel_vbt_decode.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index 04520973aae1..485e0bdb5a59 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -2896,18 +2896,13 @@ static void dump_headers(struct context *context)
printf("BDB blocks present:");
for (i = 0; i < 256; i++) {
- struct bdb_block *block;
-
- block = find_section(context, i);
- if (!block)
+ if (!find_raw_section(context, i))
continue;
if (j++ % 16)
printf(" %3d", i);
else
printf("\n\t%3d", i);
-
- free(block);
}
printf("\n\n");
}
--
2.44.1
More information about the igt-dev
mailing list