]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxeDebugPrintErrorLevelLib/DxeDebugPrintErrorLevelLib.c
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Library / DxeDebugPrintErrorLevelLib / DxeDebugPrintErrorLevelLib.c
index 7f3ccb06d8a959c99d2e508c06641b9dd43373ab..547eb1532c0fc02c1b60d61c50331342eb295633 100644 (file)
@@ -78,7 +78,7 @@ EFI_DEBUG_MASK_PROTOCOL  mDebugMaskProtocol = {
 /// 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
@@ -90,7 +90,7 @@ BOOLEAN           mGlobalErrorLevelInitialized = FALSE;
 /// 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
@@ -98,7 +98,7 @@ UINT32            mDebugPrintErrorLevel        = 0;
 /// 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
@@ -118,7 +118,7 @@ DxeDebugPrintErrorLevelLibConstructor (
   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
@@ -129,11 +129,12 @@ DxeDebugPrintErrorLevelLibConstructor (
   // 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
@@ -170,7 +171,8 @@ DxeDebugPrintErrorLevelLibDestructor (
   //\r
   return SystemTable->BootServices->UninstallMultipleProtocolInterfaces (\r
                                       ImageHandle,\r
-                                      &gEfiDebugMaskProtocolGuid, &mDebugMaskProtocol,\r
+                                      &gEfiDebugMaskProtocolGuid,\r
+                                      &mDebugMaskProtocol,\r
                                       NULL\r
                                       );\r
 }\r
@@ -219,14 +221,14 @@ GetDebugPrintErrorLevel (
       // 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
@@ -248,7 +250,7 @@ GetDebugPrintErrorLevel (
         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
@@ -296,25 +298,26 @@ SetDebugPrintErrorLevel (
       // 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