]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenSec/GenSec.c
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / C / GenSec / GenSec.c
index f3dfaf63bae3f1b75fc3c419efd89385707c7397..a0d6293ee1680af22289481f44b281aa7a680838 100644 (file)
@@ -2,13 +2,7 @@
 Creates output file that is a properly formed section per the PI spec.\r
 \r
 Copyright (c) 2004 - 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
 #ifndef __GNUC__\r
@@ -323,7 +317,7 @@ Returns:
   //\r
   Buffer = (UINT8 *) malloc ((size_t) TotalLength);\r
   if (Buffer == NULL) {\r
-    Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+    Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
     goto Done;\r
   }\r
   CommonSect = (EFI_COMMON_SECTION_HEADER *) Buffer;\r
@@ -658,7 +652,7 @@ Returns:
   if (Status == EFI_BUFFER_TOO_SMALL) {\r
     FileBuffer = (UINT8 *) malloc (InputLength);\r
     if (FileBuffer == NULL) {\r
-      Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+      Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
     //\r
@@ -887,7 +881,7 @@ Returns:
 \r
     FileBuffer = (UINT8 *) malloc (InputLength + Offset);\r
     if (FileBuffer == NULL) {\r
-      Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+      Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
     //\r
@@ -922,7 +916,7 @@ Returns:
   // InputLength != 0, but FileBuffer == NULL means out of resources.\r
   //\r
   if (FileBuffer == NULL) {\r
-    Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+    Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -1342,7 +1336,7 @@ Returns:
         goto Finish;\r
       }\r
       if (LogLevel > 9) {\r
-        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0~9, currnt input level is %d", (int) LogLevel);\r
+        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0~9, current input level is %d", (int) LogLevel);\r
         goto Finish;\r
       }\r
       SetPrintLevel (LogLevel);\r
@@ -1396,7 +1390,7 @@ Returns:
     if ((InputFileNum == 0) && (InputFileName == NULL)) {\r
       InputFileName = (CHAR8 **) malloc (MAXIMUM_INPUT_FILE_NUM * sizeof (CHAR8 *));\r
       if (InputFileName == NULL) {\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
       memset (InputFileName, 0, (MAXIMUM_INPUT_FILE_NUM * sizeof (CHAR8 *)));\r
@@ -1410,7 +1404,7 @@ Returns:
                                   );\r
 \r
       if (InputFileName == NULL) {\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
       memset (&(InputFileName[InputFileNum]), 0, (MAXIMUM_INPUT_FILE_NUM * sizeof (CHAR8 *)));\r
@@ -1454,7 +1448,7 @@ Returns:
       DummyFileBuffer = (UINT8 *) malloc (DummyFileSize);\r
       if (DummyFileBuffer == NULL) {\r
         fclose(DummyFile);\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
 \r
@@ -1463,7 +1457,7 @@ Returns:
       DebugMsg (NULL, 0, 9, "Dummy files", "the dummy file name is %s and the size is %u bytes", DummyFileName, (unsigned) DummyFileSize);\r
 \r
       if (InputFileName == NULL) {\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
       InFile = fopen(LongFilePath(InputFileName[0]), "rb");\r
@@ -1478,7 +1472,7 @@ Returns:
       InFileBuffer = (UINT8 *) malloc (InFileSize);\r
       if (InFileBuffer == NULL) {\r
         fclose(InFile);\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
 \r
@@ -1685,7 +1679,7 @@ Returns:
     Index += (strlen (StringBuffer) * 2) + 2;\r
     OutFileBuffer = (UINT8 *) malloc (Index);\r
     if (OutFileBuffer == NULL) {\r
-      Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+      Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
       goto Finish;\r
     }\r
     VersionSect = (EFI_VERSION_SECTION *) OutFileBuffer;\r
@@ -1706,7 +1700,7 @@ Returns:
     Index += (strlen (StringBuffer) * 2) + 2;\r
     OutFileBuffer = (UINT8 *) malloc (Index);\r
     if (OutFileBuffer == NULL) {\r
-      Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+      Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
       goto Finish;\r
     }\r
     UiSect = (EFI_USER_INTERFACE_SECTION *) OutFileBuffer;\r
@@ -1734,7 +1728,7 @@ Returns:
     if (Status == EFI_BUFFER_TOO_SMALL) {\r
       OutFileBuffer = (UINT8 *) malloc (InputLength);\r
       if (OutFileBuffer == NULL) {\r
-        Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated");\r
+        Error (NULL, 0, 4001, "Resource", "memory cannot be allocated");\r
         goto Finish;\r
       }\r
       //\r