/// This variable prevents the EFI Variable Services from being called fort\r
/// every DEBUG() macro.\r
///\r
-BOOLEAN mGlobalErrorLevelInitialized = FALSE;\r
+BOOLEAN mGlobalErrorLevelInitialized = FALSE;\r
\r
///\r
/// Global variable that contains the current debug error level mask for the\r
/// Debug Mask Protocol SetDebugMask() service is called, then that overrides\r
/// the PcdDebugPrintErrorLevel and the EFI Variable setting.\r
///\r
-UINT32 mDebugPrintErrorLevel = 0;\r
+UINT32 mDebugPrintErrorLevel = 0;\r
\r
///\r
/// Global variable that is used to cache a pointer to the EFI System Table\r
/// the global debug print error level mask value. The UefiBootServicesTableLib\r
/// is not used to prevent a circular dependency between these libraries.\r
///\r
-EFI_SYSTEM_TABLE *mSystemTable = NULL;\r
+EFI_SYSTEM_TABLE *mSystemTable = NULL;\r
\r
/**\r
The constructor function caches the PCI Express Base Address and creates a\r
IN EFI_SYSTEM_TABLE *SystemTable\r
)\r
{\r
- EFI_STATUS Status;\r
+ EFI_STATUS Status;\r
\r
//\r
// Initialize the error level mask from PCD setting.\r
// Install Debug Mask Protocol onto ImageHandle\r
//\r
mSystemTable = SystemTable;\r
- Status = SystemTable->BootServices->InstallMultipleProtocolInterfaces (\r
- &ImageHandle,\r
- &gEfiDebugMaskProtocolGuid, &mDebugMaskProtocol,\r
- NULL\r
- );\r
+ Status = SystemTable->BootServices->InstallMultipleProtocolInterfaces (\r
+ &ImageHandle,\r
+ &gEfiDebugMaskProtocolGuid,\r
+ &mDebugMaskProtocol,\r
+ NULL\r
+ );\r
\r
//\r
// Attempt to retrieve the global debug print error level mask from the EFI Variable\r
//\r
return SystemTable->BootServices->UninstallMultipleProtocolInterfaces (\r
ImageHandle,\r
- &gEfiDebugMaskProtocolGuid, &mDebugMaskProtocol,\r
+ &gEfiDebugMaskProtocolGuid,\r
+ &mDebugMaskProtocol,\r
NULL\r
);\r
}\r
// Attempt to retrieve the global debug print error level mask from the\r
// EFI Variable\r
//\r
- Size = sizeof (GlobalErrorLevel);\r
+ Size = sizeof (GlobalErrorLevel);\r
Status = mSystemTable->RuntimeServices->GetVariable (\r
- DEBUG_MASK_VARIABLE_NAME,\r
- &gEfiGenericVariableGuid,\r
- NULL,\r
- &Size,\r
- &GlobalErrorLevel\r
- );\r
+ DEBUG_MASK_VARIABLE_NAME,\r
+ &gEfiGenericVariableGuid,\r
+ NULL,\r
+ &Size,\r
+ &GlobalErrorLevel\r
+ );\r
if (Status != EFI_NOT_AVAILABLE_YET) {\r
//\r
// If EFI Variable Services are available, then set a flag so the EFI\r
Hob = GetFirstGuidHob (&gEfiGenericVariableGuid);\r
if (Hob != NULL) {\r
if (GET_GUID_HOB_DATA_SIZE (Hob) == sizeof (UINT32)) {\r
- mDebugPrintErrorLevel = *(UINT32 *)GET_GUID_HOB_DATA (Hob);\r
+ mDebugPrintErrorLevel = *(UINT32 *)GET_GUID_HOB_DATA (Hob);\r
mGlobalErrorLevelInitialized = TRUE;\r
}\r
}\r
// Attempt to store the global debug print error level mask in an EFI Variable\r
//\r
GlobalErrorLevel = (UINTN)ErrorLevel;\r
- Size = sizeof (GlobalErrorLevel);\r
- Status = mSystemTable->RuntimeServices->SetVariable (\r
- DEBUG_MASK_VARIABLE_NAME,\r
- &gEfiGenericVariableGuid,\r
- (EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS),\r
- Size,\r
- &GlobalErrorLevel\r
- );\r
+ Size = sizeof (GlobalErrorLevel);\r
+ Status = mSystemTable->RuntimeServices->SetVariable (\r
+ DEBUG_MASK_VARIABLE_NAME,\r
+ &gEfiGenericVariableGuid,\r
+ (EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS),\r
+ Size,\r
+ &GlobalErrorLevel\r
+ );\r
if (!EFI_ERROR (Status)) {\r
//\r
// If the EFI Variable was updated, then update the mask value for this\r
// module and return TRUE.\r
//\r
mGlobalErrorLevelInitialized = TRUE;\r
- mDebugPrintErrorLevel = ErrorLevel;\r
+ mDebugPrintErrorLevel = ErrorLevel;\r
return TRUE;\r
}\r
}\r
}\r
+\r
//\r
// Return FALSE since the EFI Variable could not be updated.\r
//\r