]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryProfileLib.c
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Library / PiSmmCoreMemoryAllocationLib / PiSmmCoreMemoryProfileLib.c
index f6a064aa8248b2bf58f12b3f390fbd2447a21cd4..82ad226e2e4a97bc4cd5ac4618a3fad42bd02b35 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
   Support routines for memory profile for PiSmmCore.\r
 \r
-  Copyright (c) 2016, 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
-  http://opensource.org/licenses/bsd-license.php.                                            \r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 \r
 #include "PiSmmCoreMemoryProfileServices.h"\r
 \r
-EDKII_MEMORY_PROFILE_PROTOCOL *mLibProfileProtocol;\r
+EDKII_MEMORY_PROFILE_PROTOCOL  *mLibProfileProtocol;\r
 \r
 /**\r
   Check whether the start address of buffer is within any of the SMRAM ranges.\r
 \r
   @param[in]  Buffer   The pointer to the buffer to be checked.\r
 \r
-  @retval     TURE     The buffer is in SMRAM ranges.\r
+  @retval     TRUE     The buffer is in SMRAM ranges.\r
   @retval     FALSE    The buffer is out of SMRAM ranges.\r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 BufferInSmram (\r
-  IN VOID *Buffer\r
+  IN VOID  *Buffer\r
   );\r
 \r
 /**\r
@@ -53,7 +47,7 @@ PiSmmCoreMemoryProfileLibConstructor (
   IN EFI_SYSTEM_TABLE  *SystemTable\r
   )\r
 {\r
-  EFI_STATUS                Status;\r
+  EFI_STATUS  Status;\r
 \r
   //\r
   // Locate Profile Protocol\r
@@ -95,12 +89,12 @@ PiSmmCoreMemoryProfileLibConstructor (
 EFI_STATUS\r
 EFIAPI\r
 MemoryProfileLibRecord (\r
-  IN PHYSICAL_ADDRESS           CallerAddress,\r
-  IN MEMORY_PROFILE_ACTION      Action,\r
-  IN EFI_MEMORY_TYPE            MemoryType,\r
-  IN VOID                       *Buffer,\r
-  IN UINTN                      Size,\r
-  IN CHAR8                      *ActionString OPTIONAL\r
+  IN PHYSICAL_ADDRESS       CallerAddress,\r
+  IN MEMORY_PROFILE_ACTION  Action,\r
+  IN EFI_MEMORY_TYPE        MemoryType,\r
+  IN VOID                   *Buffer,\r
+  IN UINTN                  Size,\r
+  IN CHAR8                  *ActionString OPTIONAL\r
   )\r
 {\r
   if (BufferInSmram (Buffer)) {\r
@@ -109,6 +103,7 @@ MemoryProfileLibRecord (
     if (mLibProfileProtocol == NULL) {\r
       return EFI_UNSUPPORTED;\r
     }\r
+\r
     return mLibProfileProtocol->Record (\r
                                   mLibProfileProtocol,\r
                                   CallerAddress,\r
@@ -120,4 +115,3 @@ MemoryProfileLibRecord (
                                   );\r
   }\r
 }\r
-\r