]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/VolInfo: Show encapsulation sections
authorKonstantin Aladyshev <aladyshev22@gmail.com>
Tue, 19 Jul 2022 12:29:17 +0000 (20:29 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 27 Jul 2022 07:48:28 +0000 (07:48 +0000)
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 <aladyshev22@gmail.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/C/VolInfo/VolInfo.c

index ed56587058f74319dad55778fe61ef796cf05981..da35cac273e82030a0ece2be93018fa6330e2f77 100644 (file)
@@ -1903,7 +1903,9 @@ Returns:
         return EFI_SECTION_ERROR;\r
       }\r
 \r
+      printf ("/------------ Encapsulation section start -----------------\\\n");\r
       Status = ParseSection (UncompressedBuffer, UncompressedLength);\r
+      printf ("\\------------ Encapsulation section end -------------------/\n");\r
 \r
       if (CompressionType == EFI_STANDARD_COMPRESSION) {\r
         //\r
@@ -2022,6 +2024,7 @@ Returns:
           return EFI_SECTION_ERROR;\r
         }\r
 \r
+        printf ("/------------ Encapsulation section start -----------------\\\n");\r
         Status = ParseSection (\r
                   ToolOutputBuffer,\r
                   ToolOutputLength\r
@@ -2030,6 +2033,7 @@ Returns:
           Error (NULL, 0, 0003, "parse of decoded GUIDED section failed", NULL);\r
           return EFI_SECTION_ERROR;\r
         }\r
+        printf ("\\------------ Encapsulation section end -------------------/\n");\r
 \r
       //\r
       // Check for CRC32 sections which we can handle internally if needed.\r
@@ -2042,6 +2046,7 @@ Returns:
         //\r
         // CRC32 guided section\r
         //\r
+        printf ("/------------ Encapsulation section start -----------------\\\n");\r
         Status = ParseSection (\r
                   SectionBuffer + DataOffset,\r
                   BufferLength - DataOffset\r
@@ -2050,6 +2055,7 @@ Returns:
           Error (NULL, 0, 0003, "parse of CRC32 GUIDED section failed", NULL);\r
           return EFI_SECTION_ERROR;\r
         }\r
+        printf ("\\------------ Encapsulation section end -------------------/\n");\r
       } else {\r
         //\r
         // We don't know how to parse it now.\r