| 2083 | } |
| 2084 | |
| 2085 | EFI_STATUS |
| 2086 | DumpDepexSection ( |
| 2087 | IN UINT8 *Ptr, |
| 2088 | IN UINT32 SectionLength |
| 2089 | ) |
| 2090 | /*++ |
| 2091 | |
| 2092 | Routine Description: |
| 2093 | |
| 2094 | GC_TODO: Add function description |
| 2095 | |
| 2096 | Arguments: |
| 2097 | |
| 2098 | Ptr - GC_TODO: add argument description |
| 2099 | SectionLength - GC_TODO: add argument description |
| 2100 | |
| 2101 | Returns: |
| 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; |
no test coverage detected