]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/VolInfo: Show FV section boundaries
authorKonstantin Aladyshev <aladyshev22@gmail.com>
Tue, 19 Jul 2022 15:45:52 +0000 (23:45 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 6 Aug 2022 15:12:28 +0000 (15:12 +0000)
Currently there is no labels for start and end of the
EFI_SECTION_FIRMWARE_VOLUME_IMAGE type section. Therefore it is not
possible to see where the FV section ends and another section starts.
Add labels for start and end of the FV 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 da35cac273e82030a0ece2be93018fa6330e2f77..609280625245417792d71f59cc08b8daa68bea6c 100644 (file)
@@ -1796,11 +1796,13 @@ Returns:
       break;\r
 \r
     case EFI_SECTION_FIRMWARE_VOLUME_IMAGE:\r
+      printf ("/------------ Firmware Volume section start ---------------\\\n");\r
       Status = PrintFvInfo (Ptr + SectionHeaderLen, TRUE);\r
       if (EFI_ERROR (Status)) {\r
         Error (NULL, 0, 0003, "printing of FV section contents failed", NULL);\r
         return EFI_SECTION_ERROR;\r
       }\r
+      printf ("\\------------ Firmware Volume section end -----------------/\n");\r
       break;\r
 \r
     case EFI_SECTION_COMPATIBILITY16:\r