]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenSec/GenSec.c
BaseTools: Various typo
[mirror_edk2.git] / BaseTools / Source / C / GenSec / GenSec.c
index f3dfaf63bae3f1b75fc3c419efd89385707c7397..e9064de4394dc6b1615309232d3a724e7d7c3357 100644 (file)
@@ -323,7 +323,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 +658,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 +887,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 +922,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 +1342,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 +1396,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 +1410,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 +1454,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 +1463,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 +1478,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 +1685,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 +1706,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 +1734,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