Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 44C04113613 for ; Tue, 14 Jun 2022 23:31:42 +0000 (UTC) From: Ville Syrjala To: igt-dev@lists.freedesktop.org Date: Wed, 15 Jun 2022 02:30:50 +0300 Message-Id: <20220614233100.13834-14-ville.syrjala@linux.intel.com> In-Reply-To: <20220614233100.13834-1-ville.syrjala@linux.intel.com> References: <20220614233100.13834-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 13/23] tools/intel_vbt_decode: Include BDB block header in hex dump List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Ville Syrjälä Include the block header in the hex dump as well. Might as well have the full data available in case we need to diagnose some decoding failures. Signed-off-by: Ville Syrjälä --- tools/intel_vbt_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c index cc9dd929db66..deeb82050528 100644 --- a/tools/intel_vbt_decode.c +++ b/tools/intel_vbt_decode.c @@ -2031,7 +2031,7 @@ static void hex_dump(const void *data, uint32_t size) static void hex_dump_block(const struct bdb_block *block) { - hex_dump(block->data, block->size); + hex_dump(block->data - 3, 3 + block->size); } static bool dump_section(struct context *context, int section_id) -- 2.35.1