]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/ReportStatusCodeLib.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Library / RuntimeDxeReportStatusCodeLib / ReportStatusCodeLib.c
index e533af3d338cca32aa0cfbe43e1b5a23b87561f8..b73103517ab2065c29fc593eeb5fbc6b98a91e24 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   API implementation for instance of Report Status Code Library.\r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -54,11 +54,11 @@ InternalGetReportStatusCode (
   if (mReportStatusCodeLibStatusCodeProtocol != NULL) {\r
     return;\r
   }\r
-  \r
+\r
   if (mHaveExitedBootServices) {\r
     return;\r
   }\r
-  \r
+\r
   //\r
   // Check gBS just in case ReportStatusCode is called before gBS is initialized.\r
   //\r
@@ -106,9 +106,9 @@ ReportStatusCodeLibExitBootServices (
 {\r
   //\r
   // Locate the report status code service before enter runtime.\r
-  // \r
+  //\r
   InternalGetReportStatusCode ();\r
-  \r
+\r
   mHaveExitedBootServices = TRUE;\r
 }\r
 \r
@@ -120,7 +120,7 @@ ReportStatusCodeLibExitBootServices (
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
@@ -135,12 +135,12 @@ ReportStatusCodeLibConstructor (
 \r
   //\r
   // Cache the report status code service\r
-  // \r
+  //\r
   InternalGetReportStatusCode ();\r
 \r
   //\r
   // Register notify function for EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE\r
-  // \r
+  //\r
   Status = gBS->CreateEventEx (\r
                   EVT_NOTIFY_SIGNAL,\r
                   TPL_NOTIFY,\r
@@ -153,7 +153,7 @@ ReportStatusCodeLibConstructor (
 \r
   //\r
   // Register notify function for EVT_SIGNAL_EXIT_BOOT_SERVICES\r
-  // \r
+  //\r
   Status = gBS->CreateEventEx (\r
                   EVT_NOTIFY_SIGNAL,\r
                   TPL_NOTIFY,\r
@@ -169,13 +169,13 @@ ReportStatusCodeLibConstructor (
 \r
 /**\r
   The destructor function of Runtime DXE Report Status Code Lib.\r
-  \r
+\r
   The destructor function frees memory allocated by constructor, and closes related events.\r
-  It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS. \r
+  It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
@@ -246,7 +246,7 @@ InternalReportStatusCode (
     //\r
     return mReportStatusCodeLibStatusCodeProtocol->ReportStatusCode (Type, Value, Instance, (EFI_GUID *)CallerId, Data);\r
   }\r
-  \r
+\r
   return EFI_UNSUPPORTED;\r
 }\r
 \r
@@ -641,7 +641,7 @@ ReportStatusCodeEx (
     if (gBS == NULL || gBS->AllocatePool == NULL || gBS->FreePool == NULL) {\r
       return EFI_UNSUPPORTED;\r
     }\r
-  \r
+\r
     //\r
     // Allocate space for the Status Code Header and its buffer\r
     //\r