MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / DumpDepexSection

Function DumpDepexSection

BaseTools/Source/C/VolInfo/VolInfo.c:2085–2195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2083}
2084
2085EFI_STATUS
2086DumpDepexSection (
2087 IN UINT8 *Ptr,
2088 IN UINT32 SectionLength
2089 )
2090/*++
2091
2092Routine Description:
2093
2094 GC_TODO: Add function description
2095
2096Arguments:
2097
2098 Ptr - GC_TODO: add argument description
2099 SectionLength - GC_TODO: add argument description
2100
2101Returns:
2102
2103 EFI_SUCCESS - GC_TODO: Add description for return value
2104
2105--*/
2106{
2107 UINT8 GuidBuffer[PRINTED_GUID_BUFFER_SIZE];
2108
2109 //
2110 // Need at least a section header + data
2111 //
2112 if (SectionLength <= sizeof (EFI_COMMON_SECTION_HEADER)) {
2113 return EFI_SUCCESS;
2114 }
2115
2116 Ptr += GetSectionHeaderLength((EFI_COMMON_SECTION_HEADER *)Ptr);
2117 SectionLength -= GetSectionHeaderLength((EFI_COMMON_SECTION_HEADER *)Ptr);
2118 while (SectionLength > 0) {
2119 printf (" ");
2120 switch (*Ptr) {
2121 case EFI_DEP_BEFORE:
2122 printf ("BEFORE\n");
2123 Ptr++;
2124 SectionLength--;
2125 break;
2126
2127 case EFI_DEP_AFTER:
2128 printf ("AFTER\n");
2129 Ptr++;
2130 SectionLength--;
2131 break;
2132
2133 case EFI_DEP_PUSH:
2134 printf ("PUSH\n ");
2135 PrintGuidToBuffer ((EFI_GUID *) (Ptr + 1), GuidBuffer, sizeof (GuidBuffer), TRUE);
2136 printf ("%s ", GuidBuffer);
2137 PrintGuidName (GuidBuffer);
2138 printf ("\n");
2139 //
2140 // PrintGuid ((EFI_GUID *)(Ptr + 1));
2141 //
2142 Ptr += 17;

Callers 1

ParseSectionFunction · 0.85

Calls 4

GetSectionHeaderLengthFunction · 0.85
printfFunction · 0.85
PrintGuidToBufferFunction · 0.85
PrintGuidNameFunction · 0.85

Tested by

no test coverage detected