Update PEI/DXE/SMM dispatchers to include DEBUG ((DEBUG_DISPATCH, )) macros to log the evaluation of all dependency expressions.
This logging can be enabled by setting the DEBUG_DISPATCH bit(0x80) of the PCD gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11117 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1078,11 +1078,20 @@ DepexSatisfied (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
VOID *DepexData;
|
||||
EFI_FV_FILE_INFO FileInfo;
|
||||
|
||||
Status = PeiServicesFfsGetFileInfo (FileHandle, &FileInfo);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_DISPATCH, "Evaluate PEI DEPEX for FFS(Unknown)\n"));
|
||||
} else {
|
||||
DEBUG ((DEBUG_DISPATCH, "Evaluate PEI DEPEX for FFS(%g)\n", &FileInfo.FileName));
|
||||
}
|
||||
|
||||
if (PeimCount < Private->AprioriCount) {
|
||||
//
|
||||
// If its in the A priori file then we set Depex to TRUE
|
||||
//
|
||||
DEBUG ((DEBUG_DISPATCH, " RESULT = TRUE (Apriori)\n"));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -1099,6 +1108,7 @@ DepexSatisfied (
|
||||
//
|
||||
// If there is no DEPEX, assume the module can be executed
|
||||
//
|
||||
DEBUG ((DEBUG_DISPATCH, " RESULT = TRUE (No DEPEX)\n"));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user