]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg: Fix typos in comments
authorZhang, Chao B <chao.b.zhang@intel.com>
Tue, 15 Nov 2016 07:39:26 +0000 (15:39 +0800)
committerZhang, Chao B <chao.b.zhang@intel.com>
Tue, 15 Nov 2016 07:45:31 +0000 (15:45 +0800)
This patch fixes the following typos:
- intialized -> initialized
- TURE -> TRUE
- successull -> successfully
- hanlder -> handler
- funciton -> function
- Seperator -> Separator
- Sumbit -> Submit
Also convert EFI_D_ERROR to DEBUG_ERROR for some debug messages.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
12 files changed:
SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c
SecurityPkg/Include/Library/TcgPpVendorLib.h
SecurityPkg/Include/Library/TcgStorageOpalLib.h
SecurityPkg/Include/Library/TrEEPpVendorLib.h
SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.c
SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/DxeRsa2048Sha256GuidedSectionExtractLib.c
SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.c
SecurityPkg/Library/TcgStorageCoreLib/TcgStorageUtil.c
SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c
SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
SecurityPkg/Tcg/TcgDxe/TcgDxe.c

index ab34de735116b9a67499b2b74fa6b3b990ff9fc3..93e32739164d1165d3112b21a3b774211b93f51c 100644 (file)
@@ -64,7 +64,7 @@ BOOLEAN
 \r
   This function performs Hash digest on a data buffer of the specified size.\r
   It can be called multiple times to compute the digest of long or discontinuous data streams.\r
 \r
   This function performs Hash digest on a data buffer of the specified size.\r
   It can be called multiple times to compute the digest of long or discontinuous data streams.\r
-  Hash context should be already correctly intialized by HashInit(), and should not be finalized\r
+  Hash context should be already correctly initialized by HashInit(), and should not be finalized\r
   by HashFinal(). Behavior with invalid context is undefined.\r
 \r
   If HashContext is NULL, then return FALSE.\r
   by HashFinal(). Behavior with invalid context is undefined.\r
 \r
   If HashContext is NULL, then return FALSE.\r
index 08b36908dbce844ff13146eb4443cd90d7e0f1f1..284aa9ed722d1771c8905a75090906879f715c63 100644 (file)
@@ -42,8 +42,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define TCG_PP_OPERATION_RESPONSE_BIOS_FAILURE         0xFFFFFFF1\r
 \r
 //\r
 #define TCG_PP_OPERATION_RESPONSE_BIOS_FAILURE         0xFFFFFFF1\r
 \r
 //\r
-// The return code for Sumbit TPM Request to Pre-OS Environment\r
-// and Sumbit TPM Request to Pre-OS Environment 2\r
+// The return code for Submit TPM Request to Pre-OS Environment\r
+// and Submit TPM Request to Pre-OS Environment 2\r
 //\r
 #define TCG_PP_SUBMIT_REQUEST_TO_PREOS_SUCCESS                                  0\r
 #define TCG_PP_SUBMIT_REQUEST_TO_PREOS_NOT_IMPLEMENTED                          1\r
 //\r
 #define TCG_PP_SUBMIT_REQUEST_TO_PREOS_SUCCESS                                  0\r
 #define TCG_PP_SUBMIT_REQUEST_TO_PREOS_NOT_IMPLEMENTED                          1\r
index 108affc422ce9874499df87a7112c3c0a03f1745..9b64a8e5cdf4f5b152bddc75c1231079d369aa39 100644 (file)
@@ -290,7 +290,7 @@ OpalGlobalLockingRangeGenKey(
 /**\r
 \r
   The function updates the ReadLocked and WriteLocked columns of the Global Locking Range.\r
 /**\r
 \r
   The function updates the ReadLocked and WriteLocked columns of the Global Locking Range.\r
-  This funciton is required for a user1 authority, since a user1 authority shall only have access to ReadLocked and WriteLocked columns\r
+  This function is required for a user1 authority, since a user1 authority shall only have access to ReadLocked and WriteLocked columns\r
   (not ReadLockEnabled and WriteLockEnabled columns).\r
 \r
   @param[in]      LockingSpSession    OPAL_SESSION with OPAL_UID_LOCKING_SP to generate key\r
   (not ReadLockEnabled and WriteLockEnabled columns).\r
 \r
   @param[in]      LockingSpSession    OPAL_SESSION with OPAL_UID_LOCKING_SP to generate key\r
index d3a07670f08dc4a51d5f9a5fcfa1d08854d38172..f0dcfd99677a6b89ec6f3248c7e3bf7f8a4a6a00 100644 (file)
@@ -45,8 +45,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define TREE_PP_OPERATION_RESPONSE_BIOS_FAILURE         0xFFFFFFF1\r
 \r
 //\r
 #define TREE_PP_OPERATION_RESPONSE_BIOS_FAILURE         0xFFFFFFF1\r
 \r
 //\r
-// The return code for Sumbit TPM Request to Pre-OS Environment\r
-// and Sumbit TPM Request to Pre-OS Environment 2\r
+// The return code for Submit TPM Request to Pre-OS Environment\r
+// and Submit TPM Request to Pre-OS Environment 2\r
 //\r
 #define TREE_PP_SUBMIT_REQUEST_TO_PREOS_SUCCESS                                  0\r
 #define TREE_PP_SUBMIT_REQUEST_TO_PREOS_NOT_IMPLEMENTED                          1\r
 //\r
 #define TREE_PP_SUBMIT_REQUEST_TO_PREOS_SUCCESS                                  0\r
 #define TREE_PP_SUBMIT_REQUEST_TO_PREOS_NOT_IMPLEMENTED                          1\r
index 142b5469af6fc8909558ef7bc3cb668df595f93d..02a87f90775459ecc58dae27f37686c086fdce09 100644 (file)
@@ -469,7 +469,7 @@ Done:
   @param[in] DevicePath  Points to device path.\r
   @param[in] AccessType  The type of user access control.\r
  \r
   @param[in] DevicePath  Points to device path.\r
   @param[in] AccessType  The type of user access control.\r
  \r
-  @retval    TURE        The DevicePath is in the specified List.\r
+  @retval    TRUE        The DevicePath is in the specified List.\r
   @retval    FALSE       The DevicePath is not in the specified List.\r
 \r
 **/\r
   @retval    FALSE       The DevicePath is not in the specified List.\r
 \r
 **/\r
@@ -512,7 +512,7 @@ IsDevicePathInList (
 \r
   @param[in] DevicePath  Points to device path\r
  \r
 \r
   @param[in] DevicePath  Points to device path\r
  \r
-  @retval    TURE        The image pointed by DevicePath is permitted to load.\r
+  @retval    TRUE        The image pointed by DevicePath is permitted to load.\r
   @retval    FALSE       The image pointed by DevicePath is forbidden to load.\r
 \r
 **/\r
   @retval    FALSE       The image pointed by DevicePath is forbidden to load.\r
 \r
 **/\r
@@ -545,7 +545,7 @@ VerifyDevicePath (
 \r
   @param[in] DevicePath  Points to device path.\r
  \r
 \r
   @param[in] DevicePath  Points to device path.\r
  \r
-  @retval    TURE        The image pointed by DevicePath is a boot option.\r
+  @retval    TRUE        The image pointed by DevicePath is a boot option.\r
   @retval    FALSE       The image pointed by DevicePath is not a boot option.\r
 \r
 **/\r
   @retval    FALSE       The image pointed by DevicePath is not a boot option.\r
 \r
 **/\r
index 5f5d242d6ee76a7163c76218252f5e204f3d1ebd..39768fbac22b9b79b04b3b7649c51e20c4ebea58 100644 (file)
@@ -59,7 +59,7 @@ CONST UINT8 mRsaE[] = { 0x01, 0x00, 0x01 };
   @param SectionAttribute   The attribute of the input guided section.\r
 \r
   @retval EFI_SUCCESS            The size of destination buffer, the size of scratch buffer and \r
   @param SectionAttribute   The attribute of the input guided section.\r
 \r
   @retval EFI_SUCCESS            The size of destination buffer, the size of scratch buffer and \r
-                                 the attribute of the input section are successull retrieved.\r
+                                 the attribute of the input section are successfully retrieved.\r
   @retval EFI_INVALID_PARAMETER  The GUID in InputSection does not match this instance guid.\r
 \r
 **/\r
   @retval EFI_INVALID_PARAMETER  The GUID in InputSection does not match this instance guid.\r
 \r
 **/\r
index 473370300a0e3f8d2ab2bc691aed0a48e2b1cc68..ba1c700ad031adac4922fa63eea89c5281f03078 100644 (file)
@@ -57,7 +57,7 @@ CONST UINT8 mRsaE[] = { 0x01, 0x00, 0x01 };
   @param SectionAttribute   The attribute of the input guided section.\r
 \r
   @retval EFI_SUCCESS            The size of destination buffer, the size of scratch buffer and \r
   @param SectionAttribute   The attribute of the input guided section.\r
 \r
   @retval EFI_SUCCESS            The size of destination buffer, the size of scratch buffer and \r
-                                 the attribute of the input section are successull retrieved.\r
+                                 the attribute of the input section are successfully retrieved.\r
   @retval EFI_INVALID_PARAMETER  The GUID in InputSection does not match this instance guid.\r
 \r
 **/\r
   @retval EFI_INVALID_PARAMETER  The GUID in InputSection does not match this instance guid.\r
 \r
 **/\r
index 30808cd835559e7d662afc29443d9201de1d618c..286f5b6bdac9b365b3f37e2e6739e36ee417a1eb 100644 (file)
@@ -881,7 +881,7 @@ TcgIsProtocolSupported(
 \r
   @param     Discovery\r
 \r
 \r
   @param     Discovery\r
 \r
-  @retval    TURE if lock, FALSE if not lock.\r
+  @retval    TRUE if lock, FALSE if not lock.\r
 **/\r
 BOOLEAN\r
 EFIAPI\r
 **/\r
 BOOLEAN\r
 EFIAPI\r
index a0eac339816fb6a6f23818f2810b125e57b4fbc8..90cc51a24c170e829873f5a7180fa9f0a183657f 100644 (file)
@@ -1055,7 +1055,7 @@ OpalGlobalLockingRangeGenKey(
 /**\r
 \r
   The function updates the ReadLocked and WriteLocked columns of the Global Locking Range.\r
 /**\r
 \r
   The function updates the ReadLocked and WriteLocked columns of the Global Locking Range.\r
-  This funciton is required for a user1 authority, since a user1 authority shall only have access to ReadLocked and WriteLocked columns\r
+  This function is required for a user1 authority, since a user1 authority shall only have access to ReadLocked and WriteLocked columns\r
   (not ReadLockEnabled and WriteLockEnabled columns).\r
 \r
   @param[in]      LockingSpSession    OPAL_SESSION with OPAL_UID_LOCKING_SP to generate key\r
   (not ReadLockEnabled and WriteLockEnabled columns).\r
 \r
   @param[in]      LockingSpSession    OPAL_SESSION with OPAL_UID_LOCKING_SP to generate key\r
index 9bf1ced3cc7ec08a4d602fb4c0f05a91347331f8..bd12d5ad8010f3ecd9c5ab905ad82ae34c1876a1 100644 (file)
@@ -406,7 +406,7 @@ OpalDriverGetDeviceList(
   ReadyToBoot callback to send BlockSid command.\r
 \r
   @param  Event   Pointer to this event\r
   ReadyToBoot callback to send BlockSid command.\r
 \r
   @param  Event   Pointer to this event\r
-  @param  Context Event hanlder private Data\r
+  @param  Context Event handler private Data\r
 \r
 **/\r
 VOID\r
 \r
 **/\r
 VOID\r
index db8d662f80dc0b1b679cf59784ee036d8261c5ff..f0545a6df856e9c6693a1a8463bdf0db788cc6cf 100644 (file)
@@ -2073,7 +2073,7 @@ OnReadyToBoot (
     for (PcrIndex = 0; PcrIndex < 7; PcrIndex++) {\r
       Status = MeasureSeparatorEvent (PcrIndex);\r
       if (EFI_ERROR (Status)) {\r
     for (PcrIndex = 0; PcrIndex < 7; PcrIndex++) {\r
       Status = MeasureSeparatorEvent (PcrIndex);\r
       if (EFI_ERROR (Status)) {\r
-        DEBUG ((EFI_D_ERROR, "Seperator Event not Measured. Error!\n"));\r
+        DEBUG ((DEBUG_ERROR, "Separator Event not Measured. Error!\n"));\r
       }\r
     }\r
 \r
       }\r
     }\r
 \r
index 0d7e32ae3f94f6527815528b12fccb1ad87ce449..f7bf79a66c57dfa7872f058b692f7e48e811485e 100644 (file)
@@ -1160,7 +1160,7 @@ OnReadyToBoot (
     for (PcrIndex = 0; PcrIndex < 8; PcrIndex++) {\r
       Status = MeasureSeparatorEvent (PcrIndex);\r
       if (EFI_ERROR (Status)) {\r
     for (PcrIndex = 0; PcrIndex < 8; PcrIndex++) {\r
       Status = MeasureSeparatorEvent (PcrIndex);\r
       if (EFI_ERROR (Status)) {\r
-        DEBUG ((EFI_D_ERROR, "Seperator Event not Measured. Error!\n"));\r
+        DEBUG ((DEBUG_ERROR, "Separator Event not Measured. Error!\n"));\r
       }\r
     }\r
 \r
       }\r
     }\r
 \r