From nobody Sun May 5 19:11:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+91527+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+91527+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1658229848; cv=none; d=zohomail.com; s=zohoarc; b=aPaqKyhSEVdGyWrs6Fu2mDQTlrZVhY2gs2Y8lqxAR8yoA1C3oW9FpwZCMSU58NqOZx6dTBFY0xl5Xf2K8piKBn8lFNgYB8107n/Be7JekCN3bBKR+i2jCQWWyzend7UuiivC8OZtp4iINd73TsE0FHc4OCzxAbAi53KiI1ITf0s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658229848; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=bfTQEdV5GOSjhc29rZcqVeJWBjq5BQRbKF9NHMpQ7qk=; b=a2FMs72dRwuVhER690Xd45wYgrahdQb4oY4dLE1+i4t/RzcLX4ynxLcTIkQ5m6EoknlIQncqPhFy0ltfixnd020i2NULSJd9Du0kDK8xNWLYw2YZphYGyUuE2zTerpVlz6wi1n2nDoxFL3ZXmutsQjSS6pV2Ulg1ToEd4tiUtyk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+91527+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1658229848539647.774257834765; Tue, 19 Jul 2022 04:24:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id tuZfYY1788612x329LYH3DTl; Tue, 19 Jul 2022 04:24:08 -0700 X-Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by mx.groups.io with SMTP id smtpd.web10.39516.1658229847089777155 for ; Tue, 19 Jul 2022 04:24:07 -0700 X-Received: by mail-lf1-f51.google.com with SMTP id z22so10588853lfu.7 for ; Tue, 19 Jul 2022 04:24:06 -0700 (PDT) X-Gm-Message-State: A5GzB4ysVgpoET7WYtIY1WQrx1787277AA= X-Google-Smtp-Source: AGRyM1s6h7htEHiJ3wb1Nh6eW6+Oeu8T0MGbdgrZHdl9Y2L1NjNbqptLXHDwK0Po34t9M1Mz1dZXlA== X-Received: by 2002:a05:6512:2611:b0:478:da8f:e2d8 with SMTP id bt17-20020a056512261100b00478da8fe2d8mr16666521lfb.460.1658229844774; Tue, 19 Jul 2022 04:24:04 -0700 (PDT) X-Received: from PC10319.67 ([82.97.198.254]) by smtp.googlemail.com with ESMTPSA id s12-20020a05651c200c00b002559299b0e7sm2627209ljo.86.2022.07.19.04.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 04:24:04 -0700 (PDT) From: "Konstantin Aladyshev" To: devel@edk2.groups.io Cc: bob.c.feng@intel.com, gaoliming@byosoft.com.cn, yuwei.chen@intel.com, Konstantin Aladyshev Subject: [edk2-devel] [PATCH] BaseTools/VolInfo: Show encapsulation sections Date: Tue, 19 Jul 2022 14:23:13 +0300 Message-Id: <20220719112313.1897-1-aladyshev22@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,aladyshev22@gmail.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1658229848; bh=SlarmJz8zBkzWDSeVaZP9yCDC1bsKPU4rdqgPfGJkE0=; h=Cc:Date:From:Reply-To:Subject:To; b=tMaQDF9ULbB2QNi4RyUSaz4pcP4MzYJrvmjH1Q7GHUpdpRlRuEH5TrYggQyUzJpJJDa xL2SHSf1E9RhI01F2DsM86KaYcRn/S4mhuBFTMCKUMbR4UxFh9c5gBqHOTwDaD5TCThNC sbfhOSFZCHCvNyIcvaan+0sFgLon7cKUoXI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1658229850498100003 Content-Type: text/plain; charset="utf-8" Currently there is no labels for start and end of the encapsulation sections. Therefore it is not possible to see where the encapsulation section ends and another section starts. Add labels for start and end of encapsulation sections to fix the issue. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolI= nfo/VolInfo.c index c1f81f2dcb..cfc65a8a6d 100644 --- a/BaseTools/Source/C/VolInfo/VolInfo.c +++ b/BaseTools/Source/C/VolInfo/VolInfo.c @@ -1903,7 +1903,9 @@ Returns: return EFI_SECTION_ERROR; } =20 + printf ("/------------ Encapsulation section start -----------------= \\\n"); Status =3D ParseSection (UncompressedBuffer, UncompressedLength); + printf ("\\----------- Encapsulation section end -------------------= -/\n"); =20 if (CompressionType =3D=3D EFI_STANDARD_COMPRESSION) { // @@ -2022,6 +2024,7 @@ Returns: return EFI_SECTION_ERROR; } =20 + printf ("/------------ Encapsulation section start ---------------= --\\\n"); Status =3D ParseSection ( ToolOutputBuffer, ToolOutputLength @@ -2030,6 +2033,7 @@ Returns: Error (NULL, 0, 0003, "parse of decoded GUIDED section failed", = NULL); return EFI_SECTION_ERROR; } + printf ("\\----------- Encapsulation section end -----------------= ---/\n"); =20 // // Check for CRC32 sections which we can handle internally if needed. @@ -2042,6 +2046,7 @@ Returns: // // CRC32 guided section // + printf ("/------------ Encapsulation section start ---------------= --\\\n"); Status =3D ParseSection ( SectionBuffer + DataOffset, BufferLength - DataOffset @@ -2050,6 +2055,7 @@ Returns: Error (NULL, 0, 0003, "parse of CRC32 GUIDED section failed", NU= LL); return EFI_SECTION_ERROR; } + printf ("\\----------- Encapsulation section end -----------------= ---/\n"); } else { // // We don't know how to parse it now. --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#91527): https://edk2.groups.io/g/devel/message/91527 Mute This Topic: https://groups.io/mt/92480155/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-