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

Function PrintGuidName

BaseTools/Source/C/VolInfo/VolInfo.c:2197–2235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2195}
2196
2197EFI_STATUS
2198PrintGuidName (
2199 IN UINT8 *GuidStr
2200 )
2201/*++
2202
2203Routine Description:
2204
2205 GC_TODO: Add function description
2206
2207Arguments:
2208
2209 GuidStr - GC_TODO: add argument description
2210
2211Returns:
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
2237EFI_STATUS
2238ParseGuidBaseNameFile (

Callers 2

PrintFileInfoFunction · 0.85
DumpDepexSectionFunction · 0.85

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected