| 2195 | } |
| 2196 | |
| 2197 | EFI_STATUS |
| 2198 | PrintGuidName ( |
| 2199 | IN UINT8 *GuidStr |
| 2200 | ) |
| 2201 | /*++ |
| 2202 | |
| 2203 | Routine Description: |
| 2204 | |
| 2205 | GC_TODO: Add function description |
| 2206 | |
| 2207 | Arguments: |
| 2208 | |
| 2209 | GuidStr - GC_TODO: add argument description |
| 2210 | |
| 2211 | Returns: |
| 2212 | |
| 2213 | EFI_SUCCESS - GC_TODO: Add description for return value |
| 2214 | EFI_INVALID_PARAMETER - GC_TODO: Add description for return value |
| 2215 | |
| 2216 | --*/ |
| 2217 | { |
| 2218 | GUID_TO_BASENAME *GPtr; |
| 2219 | // |
| 2220 | // If we have a list of guid-to-basenames, then go through the list to |
| 2221 | // look for a guid string match. If found, print the basename to stdout, |
| 2222 | // otherwise return a failure. |
| 2223 | // |
| 2224 | GPtr = mGuidBaseNameList; |
| 2225 | while (GPtr != NULL) { |
| 2226 | if (_stricmp ((CHAR8*) GuidStr, (CHAR8*) GPtr->Guid) == 0) { |
| 2227 | printf ("%s", GPtr->BaseName); |
| 2228 | return EFI_SUCCESS; |
| 2229 | } |
| 2230 | |
| 2231 | GPtr = GPtr->Next; |
| 2232 | } |
| 2233 | |
| 2234 | return EFI_INVALID_PARAMETER; |
| 2235 | } |
| 2236 | |
| 2237 | EFI_STATUS |
| 2238 | ParseGuidBaseNameFile ( |
no test coverage detected