mirror of https://github.com/acidanthera/audk.git
BaseTools/VolInfo: Show encapsulation sections
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>
This commit is contained in:
parent
b68d566439
commit
e3d468acb9
|
@ -1903,7 +1903,9 @@ Returns:
|
||||||
return EFI_SECTION_ERROR;
|
return EFI_SECTION_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf ("/------------ Encapsulation section start -----------------\\\n");
|
||||||
Status = ParseSection (UncompressedBuffer, UncompressedLength);
|
Status = ParseSection (UncompressedBuffer, UncompressedLength);
|
||||||
|
printf ("\\------------ Encapsulation section end -------------------/\n");
|
||||||
|
|
||||||
if (CompressionType == EFI_STANDARD_COMPRESSION) {
|
if (CompressionType == EFI_STANDARD_COMPRESSION) {
|
||||||
//
|
//
|
||||||
|
@ -2022,6 +2024,7 @@ Returns:
|
||||||
return EFI_SECTION_ERROR;
|
return EFI_SECTION_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf ("/------------ Encapsulation section start -----------------\\\n");
|
||||||
Status = ParseSection (
|
Status = ParseSection (
|
||||||
ToolOutputBuffer,
|
ToolOutputBuffer,
|
||||||
ToolOutputLength
|
ToolOutputLength
|
||||||
|
@ -2030,6 +2033,7 @@ Returns:
|
||||||
Error (NULL, 0, 0003, "parse of decoded GUIDED section failed", NULL);
|
Error (NULL, 0, 0003, "parse of decoded GUIDED section failed", NULL);
|
||||||
return EFI_SECTION_ERROR;
|
return EFI_SECTION_ERROR;
|
||||||
}
|
}
|
||||||
|
printf ("\\------------ Encapsulation section end -------------------/\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check for CRC32 sections which we can handle internally if needed.
|
// Check for CRC32 sections which we can handle internally if needed.
|
||||||
|
@ -2042,6 +2046,7 @@ Returns:
|
||||||
//
|
//
|
||||||
// CRC32 guided section
|
// CRC32 guided section
|
||||||
//
|
//
|
||||||
|
printf ("/------------ Encapsulation section start -----------------\\\n");
|
||||||
Status = ParseSection (
|
Status = ParseSection (
|
||||||
SectionBuffer + DataOffset,
|
SectionBuffer + DataOffset,
|
||||||
BufferLength - DataOffset
|
BufferLength - DataOffset
|
||||||
|
@ -2050,6 +2055,7 @@ Returns:
|
||||||
Error (NULL, 0, 0003, "parse of CRC32 GUIDED section failed", NULL);
|
Error (NULL, 0, 0003, "parse of CRC32 GUIDED section failed", NULL);
|
||||||
return EFI_SECTION_ERROR;
|
return EFI_SECTION_ERROR;
|
||||||
}
|
}
|
||||||
|
printf ("\\------------ Encapsulation section end -------------------/\n");
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// We don't know how to parse it now.
|
// We don't know how to parse it now.
|
||||||
|
|
Loading…
Reference in New Issue