From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Zl/z4Z3J; spf=pass (domain: gmail.com, ip: 209.85.167.51, mailfrom: aladyshev22@gmail.com) Received: by mail-lf1-f51.google.com with SMTP id z22so10588853lfu.7 for ; Tue, 19 Jul 2022 04:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IU84QNLKdxltC7jdW7yF+gFw2vA2WXIReRLkHE9kwM8=; b=Zl/z4Z3J7tjeyPpCkZc+Vv5AXUvVNxzZOwAU4tmWo//x4Jx+alQ41p+xPrHVAfnM8z FtHqbFb/P35eFC3oFdwQOX6hxgk819qZtOskoiKRknPae+jMfcbxaYUCNfcOPr46P21g SunmELlR2+60vlyiJNdkrIt0CdmDJBMD8FntshGViYhtkT6KJpmbDfe4gtTG9eme+DpE N0UdK8CXt9M0FH8i50htatj2vfA1eXkqFM4DsuHTdRlqXXsjfTcNGzb7stgBEzmD8paG Ev4hlUowZtQQBd5ib6GzF0/Vvs8oGCPjWwhGR1HK/BYymMvsveazCMrXYEI8lUszHaLz nH/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IU84QNLKdxltC7jdW7yF+gFw2vA2WXIReRLkHE9kwM8=; b=xdnV1fm3JGc9b1A/ujJXOo7twa0XX3fdk3BTNKKmR5DS2LZo7PzMLp1qWXpJTS616f kGCF1X60PK2W3SOsG6o+3wwA1WX4x/S3l9AzkZ4jqXGNPN9D4u4J8yRfzdNYwFQp3g/d 76T/C51YIpbOiFfG1JULyYDadyqBxcgSCPC6BQEahCjrjt9okW3Dn98+h8d4FORQWKC4 iA//SpzfN2t+Y1WQJNJl+m1RpaNi6vhARz5kCQA3iXrbJuo2WyQrDqK3AXAJ+oDW0T0M A871xMP9/eIJ9WvXjBDxKpikkRnWJtal516g1QgW+2e+r3Rq//f2tKlQtEjyxlrnGnGx ohcA== X-Gm-Message-State: AJIora/vBHGHLPOGZc6zIOu9DL5KkrLYxaMnps7vTC/ObIbt7IecGEZ7 Avz1VvEZGTdxeX9+014rYevMnEyq+do3JSsO 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) Return-Path: 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: [PATCH] BaseTools/VolInfo: Show encapsulation sections Date: Tue, 19 Jul 2022 14:23:13 +0300 Message-Id: <20220719112313.1897-1-aladyshev22@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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;=0D }=0D =0D + printf ("/------------ Encapsulation section start -----------------= \\\n");=0D Status =3D ParseSection (UncompressedBuffer, UncompressedLength);=0D + printf ("\\----------- Encapsulation section end -------------------= -/\n");=0D =0D if (CompressionType =3D=3D EFI_STANDARD_COMPRESSION) {=0D //=0D @@ -2022,6 +2024,7 @@ Returns: return EFI_SECTION_ERROR;=0D }=0D =0D + printf ("/------------ Encapsulation section start ---------------= --\\\n");=0D Status =3D ParseSection (=0D ToolOutputBuffer,=0D ToolOutputLength=0D @@ -2030,6 +2033,7 @@ Returns: Error (NULL, 0, 0003, "parse of decoded GUIDED section failed", = NULL);=0D return EFI_SECTION_ERROR;=0D }=0D + printf ("\\----------- Encapsulation section end -----------------= ---/\n");=0D =0D //=0D // Check for CRC32 sections which we can handle internally if needed= .=0D @@ -2042,6 +2046,7 @@ Returns: //=0D // CRC32 guided section=0D //=0D + printf ("/------------ Encapsulation section start ---------------= --\\\n");=0D Status =3D ParseSection (=0D SectionBuffer + DataOffset,=0D BufferLength - DataOffset=0D @@ -2050,6 +2055,7 @@ Returns: Error (NULL, 0, 0003, "parse of CRC32 GUIDED section failed", NU= LL);=0D return EFI_SECTION_ERROR;=0D }=0D + printf ("\\----------- Encapsulation section end -----------------= ---/\n");=0D } else {=0D //=0D // We don't know how to parse it now.=0D --=20 2.25.1