From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from walk.intel-email.com (walk.intel-email.com [101.227.64.242]) by mx.groups.io with SMTP id smtpd.web11.1267.1663722388113547092 for ; Tue, 20 Sep 2022 18:06:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=oTvswbNI; spf=pass (domain: byosoft.com.cn, ip: 101.227.64.242, mailfrom: gaoliming@byosoft.com.cn) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id A5E05CD1F658 for ; Wed, 21 Sep 2022 09:06:25 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1663722385; bh=qlenEyKpCBbbRI8xB6wUw7i/xKHEBbpAy3jci1PfjQs=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=oTvswbNI+FQdDr19NYd0Hyg+US0sJHOaBgH+BQiWmZm1qv5ipjsPHCOEukU7T316s pXBYZxZOikgIqtUxvhDSDpPEUp4WLZUYi3MxEumppdC5/vA5yWI0lYsYJ2cN+B9IPJ sx0Xlrvub6uYouLOtYdGAzGBWUc3CoT1KsF6nR4s= Received: from localhost (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id A13D1CD1F651 for ; Wed, 21 Sep 2022 09:06:25 +0800 (CST) X-Virus-Scanned: by SpamTitan at intel-email.com Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 66888CD1F717 for ; Wed, 21 Sep 2022 09:06:25 +0800 (CST) Authentication-Results: walk.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by walk.intel-email.com (Postfix) with SMTP id 05929CD1F74E for ; Wed, 21 Sep 2022 09:06:22 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Wed, 21 Sep 2022 09:06:21 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Konstantin Aladyshev'" , Cc: , References: <20220719122917.2749-1-aladyshev22@gmail.com> In-Reply-To: <20220719122917.2749-1-aladyshev22@gmail.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggdjJdIEJhc2VUb29scy9Wb2xJbmZvOiBTaG93IGVuY2Fwc3VsYXRpb24gc2VjdGlvbnM=?= Date: Wed, 21 Sep 2022 09:06:22 +0800 Message-ID: <007b01d8cd56$5d66cf50$18346df0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQI0uxNlvZl3onIF7FWX9kdUJzOENq0xNpIg Sender: "gaoliming" Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Konstantin Aladyshev > =B7=A2=CB=CD=CA=B1=BC=E4: 2022=C4=EA7=D4=C219=C8=D5 20:29 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: bob.c.feng@intel.com; gaoliming@byosoft.com.cn; > yuwei.chen@intel.com; Konstantin Aladyshev > =D6=F7=CC=E2: [PATCH v2] BaseTools/VolInfo: Show encapsulation = sections >=20 > 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. >=20 > Signed-off-by: Konstantin Aladyshev > --- > BaseTools/Source/C/VolInfo/VolInfo.c | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c > b/BaseTools/Source/C/VolInfo/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 > } >=20 >=20 >=20 > + printf ("/------------ Encapsulation section start -----------------\\\n"); >=20 > Status =3D ParseSection (UncompressedBuffer, = UncompressedLength); >=20 > + printf ("\\------------ Encapsulation section end -------------------/\n"); >=20 >=20 >=20 > if (CompressionType =3D=3D EFI_STANDARD_COMPRESSION) { >=20 > // >=20 > @@ -2022,6 +2024,7 @@ Returns: > return EFI_SECTION_ERROR; >=20 > } >=20 >=20 >=20 > + printf ("/------------ Encapsulation section start > -----------------\\\n"); >=20 > Status =3D ParseSection ( >=20 > ToolOutputBuffer, >=20 > ToolOutputLength >=20 > @@ -2030,6 +2033,7 @@ Returns: > Error (NULL, 0, 0003, "parse of decoded GUIDED section = failed", > NULL); >=20 > return EFI_SECTION_ERROR; >=20 > } >=20 > + printf ("\\------------ Encapsulation section end > -------------------/\n"); >=20 >=20 >=20 > // >=20 > // Check for CRC32 sections which we can handle internally if > needed. >=20 > @@ -2042,6 +2046,7 @@ Returns: > // >=20 > // CRC32 guided section >=20 > // >=20 > + printf ("/------------ Encapsulation section start > -----------------\\\n"); >=20 > Status =3D ParseSection ( >=20 > SectionBuffer + DataOffset, >=20 > BufferLength - DataOffset >=20 > @@ -2050,6 +2055,7 @@ Returns: > Error (NULL, 0, 0003, "parse of CRC32 GUIDED section = failed", > NULL); >=20 > return EFI_SECTION_ERROR; >=20 > } >=20 > + printf ("\\------------ Encapsulation section end > -------------------/\n"); >=20 > } else { >=20 > // >=20 > // We don't know how to parse it now. >=20 > -- > 2.25.1