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

Function InternalGetOcLog

Library/OcDebugLogLib/OcLog.c:403–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403OC_LOG_PROTOCOL *
404InternalGetOcLog (
405 VOID
406 )
407{
408 EFI_STATUS Status;
409
410 STATIC OC_LOG_PROTOCOL *mInternalOcLog = NULL;
411
412 if (mInternalOcLog == NULL) {
413 Status = gBS->LocateProtocol (
414 &gOcLogProtocolGuid,
415 NULL,
416 (VOID **) &mInternalOcLog
417 );
418
419 if (EFI_ERROR(Status) || mInternalOcLog->Revision != OC_LOG_REVISION) {
420 mInternalOcLog = NULL;
421 }
422 }
423
424 return mInternalOcLog;
425}
426
427EFI_STATUS
428OcConfigureLogProtocol (

Callers 3

AppleDebugLogPrintFunction · 0.85
OcConfigureLogProtocolFunction · 0.85
DebugPrintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected