]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/PrePiLib/FwVol.c
EmbeddedPkg: Change OPTIONAL keyword usage style
[mirror_edk2.git] / EmbeddedPkg / Library / PrePiLib / FwVol.c
index d513de351ff59284cb731dd2f5daa2e9c47dadfe..7b9853bab7360bbb3de44c70437c1001078c0af4 100644 (file)
@@ -5,13 +5,7 @@
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 \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
@@ -162,7 +156,7 @@ FileHandleToVolume (
 EFI_STATUS\r
 FindFileEx (\r
   IN  CONST EFI_PEI_FV_HANDLE        FvHandle,\r
-  IN  CONST EFI_GUID                 *FileName,   OPTIONAL\r
+  IN  CONST EFI_GUID                 *FileName    OPTIONAL,\r
   IN        EFI_FV_FILETYPE          SearchType,\r
   IN OUT    EFI_PEI_FILE_HANDLE      *FileHandle\r
   )\r
@@ -367,7 +361,7 @@ FfsProcessSection (
         //\r
         // GetInfo failed\r
         //\r
-        DEBUG ((EFI_D_ERROR, "Decompress GetInfo Failed - %r\n", Status));\r
+        DEBUG ((DEBUG_ERROR, "Decompress GetInfo Failed - %r\n", Status));\r
         return EFI_NOT_FOUND;\r
       }\r
       //\r
@@ -421,7 +415,7 @@ FfsProcessSection (
         //\r
         // Decompress failed\r
         //\r
-        DEBUG ((EFI_D_ERROR, "Decompress Failed - %r\n", Status));\r
+        DEBUG ((DEBUG_ERROR, "Decompress Failed - %r\n", Status));\r
         return EFI_NOT_FOUND;\r
       } else {\r
         return FfsProcessSection (\r
@@ -738,7 +732,7 @@ FfsGetVolumeInfo (
   Search through every FV until you find a file of type FileType\r
 \r
   @param FileType        File handle of a Fv type file.\r
-  @param Volumehandle    On succes Volume Handle of the match\r
+  @param Volumehandle    On success Volume Handle of the match\r
   @param FileHandle      On success File Handle of the match\r
 \r
   @retval EFI_NOT_FOUND  FV image can't be found.\r
@@ -863,7 +857,7 @@ FfsProcessFvFile (
 \r
 \r
   //\r
-  // Inform HOB consumer phase, i.e. DXE core, the existance of this FV\r
+  // Inform HOB consumer phase, i.e. DXE core, the existence of this FV\r
   //\r
   BuildFvHob ((EFI_PHYSICAL_ADDRESS) (UINTN) FvImageInfo.FvStart, FvImageInfo.FvSize);\r
 \r
@@ -880,5 +874,3 @@ FfsProcessFvFile (
 \r
   return EFI_SUCCESS;\r
 }\r
-\r
-\r