]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigMisc.c
SecurityPkg: Change use of EFI_D_* to DEBUG_*
[mirror_edk2.git] / SecurityPkg / VariableAuthenticated / SecureBootConfigDxe / SecureBootConfigMisc.c
index 22b7cfdd1f853a1f4771ff63d3fa217e2341aded..3730fbe64649d6911a7b480340195668171a1eaf 100644 (file)
@@ -2,13 +2,7 @@
   Helper functions for SecureBoot configuration module.\r
 \r
 Copyright (c) 2015 - 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
-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
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -16,12 +10,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 /**\r
   Read file content into BufferPtr, the size of the allocate buffer\r
-  is *FileSize plus AddtionAllocateSize.\r
+  is *FileSize plus AdditionAllocateSize.\r
 \r
   @param[in]       FileHandle            The file to be read.\r
   @param[in, out]  BufferPtr             Pointers to the pointer of allocated buffer.\r
   @param[out]      FileSize              Size of input file\r
-  @param[in]       AddtionAllocateSize   Addtion size the buffer need to be allocated.\r
+  @param[in]       AdditionAllocateSize   Addition size the buffer need to be allocated.\r
                                          In case the buffer need to contain others besides the file content.\r
 \r
   @retval   EFI_SUCCESS                  The file was read into the buffer.\r
@@ -35,7 +29,7 @@ ReadFileContent (
   IN      EFI_FILE_HANDLE           FileHandle,\r
   IN OUT  VOID                      **BufferPtr,\r
      OUT  UINTN                     *FileSize,\r
-  IN      UINTN                     AddtionAllocateSize\r
+  IN      UINTN                     AdditionAllocateSize\r
   )\r
 \r
 {\r
@@ -68,7 +62,7 @@ ReadFileContent (
     goto ON_EXIT;\r
   }\r
 \r
-  BufferSize = (UINTN) SourceFileSize + AddtionAllocateSize;\r
+  BufferSize = (UINTN) SourceFileSize + AdditionAllocateSize;\r
   Buffer =  AllocateZeroPool(BufferSize);\r
   if (Buffer == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r