From nobody Thu May 2 16:38:48 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+91528+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+91528+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1658233762; cv=none; d=zohomail.com; s=zohoarc; b=HhL+kddBzgPJgESgA80t5L3zdz/Oa3spzNoUNgLncOKOkMjcEtuAnsRYlpDl+pODYkbh4H6guPU+bf4xBRasNgW6Syn1eesY9QP52iay7IPkBxtKnF1Sy6y54GQmNX4tJfAiU546j50B1Nz/Z7m13B+NZUkTutyO2JsSIKYxG3w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658233762; 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=jg1Tq+XWhxCw48FVgo2vCpNQJx7T8pnPmDzV05v1orY=; b=LFP8zOFA57U/yhOWCD1GGWh1kxjf2UiJntD/STfpXgPw/xwrKu+W6ZWfT35hwVpC2by3oG2+G/M4Nl8LyDYBQCtmkBaqdkkIPdjXPCPaUUyJ8S6HamUpK2EKdYvcOtbl8OttV9s6FsebHxrZdT3wWHlAg1NBRgB/yENicquFcPw= 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+91528+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 1658233762151839.9583805368976; Tue, 19 Jul 2022 05:29:22 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id SVHlYY1788612x1Cx2YCR4iN; Tue, 19 Jul 2022 05:29:21 -0700 X-Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by mx.groups.io with SMTP id smtpd.web10.40084.1658233760046051060 for ; Tue, 19 Jul 2022 05:29:20 -0700 X-Received: by mail-lj1-f169.google.com with SMTP id x10so16720545ljj.11 for ; Tue, 19 Jul 2022 05:29:19 -0700 (PDT) X-Gm-Message-State: gOdGkM6zUQwf53M9UtEdT2Dux1787277AA= X-Google-Smtp-Source: AGRyM1sXnRr2U98M069ciqyrPFIxmu1/OQ6iBKSJeUCdDLZrIq+YwGISdOzyaXzcn2kEMDk4d7SNKA== X-Received: by 2002:a05:651c:109:b0:25d:5889:cfe6 with SMTP id a9-20020a05651c010900b0025d5889cfe6mr14010904ljb.184.1658233757971; Tue, 19 Jul 2022 05:29:17 -0700 (PDT) X-Received: from PC10319.67 ([82.97.198.254]) by smtp.googlemail.com with ESMTPSA id 186-20020a2e09c3000000b0025d297abc22sm2613259ljj.35.2022.07.19.05.29.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 05:29:17 -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 v2] BaseTools/VolInfo: Show encapsulation sections Date: Tue, 19 Jul 2022 15:29:17 +0300 Message-Id: <20220719122917.2749-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=1658233761; bh=JijfrLLMH0L8xqXwax0hyU96f9uOuJSJRZtwzpqNOLE=; h=Cc:Date:From:Reply-To:Subject:To; b=JSudmriKhG6GK6PQ07W+ksTAahvrJcberhmj6vGKYM7HzEXeuK1GL4FU0DPIgl/XvqY XW5JbJg5UKg2v9V2h6Cgl5a8tAO9Sxs/dWYjP+qO14R9Ol7PIHu7RmYQQWKiYAwEn70XT fhxU+0hyXSA2Iof72umawHyEF4HTSewH7Uk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1658233763460100001 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 Reviewed-by: Bob Feng Reviewed-by: Liming Gao --- 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..ce1775f7fd 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 (#91528): https://edk2.groups.io/g/devel/message/91528 Mute This Topic: https://groups.io/mt/92481203/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-