]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.c
SecurityPkg: Fix spelling errors
[mirror_edk2.git] / SecurityPkg / Library / DxeTpmMeasurementLib / DxeTpmMeasurementLib.c
index 8c56a713d8d885d9ccd101e0ee4c39e944f2ee29..061136ee786075592dd2b634e54b57122941049f 100644 (file)
@@ -2,13 +2,7 @@
   This library is used by other modules to measure data to TPM.\r
 \r
 Copyright (c) 2012 - 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
@@ -62,7 +56,7 @@ Tpm12MeasureAndLogData (
   TcgEvent = NULL;\r
 \r
   //\r
-  // Tpm active/deactive state is checked in HashLogExtendEvent\r
+  // Tpm activation state is checked in HashLogExtendEvent\r
   //\r
   Status = gBS->LocateProtocol (&gEfiTcgProtocolGuid, NULL, (VOID **) &TcgProtocol);\r
   if (EFI_ERROR(Status)){\r
@@ -184,21 +178,22 @@ TpmMeasureAndLogData (
   EFI_STATUS  Status;\r
 \r
   //\r
-  // Try to measure using Tpm1.2 protocol\r
+  // Try to measure using Tpm20 protocol\r
   //\r
-  Status = Tpm12MeasureAndLogData(\r
-               PcrIndex,\r
-               EventType,\r
-               EventLog,\r
-               LogLen,\r
-               HashData,\r
-               HashDataLen\r
-               );\r
+  Status = Tpm20MeasureAndLogData(\r
+             PcrIndex,\r
+             EventType,\r
+             EventLog,\r
+             LogLen,\r
+             HashData,\r
+             HashDataLen\r
+             );\r
+\r
   if (EFI_ERROR (Status)) {\r
     //\r
-    // Try to measure using Tpm20 protocol\r
+    // Try to measure using Tpm1.2 protocol\r
     //\r
-    Status = Tpm20MeasureAndLogData(\r
+    Status = Tpm12MeasureAndLogData(\r
                PcrIndex,\r
                EventType,\r
                EventLog,\r