]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.c
SecurityPkg Tpm2DeviceLibDTpm: Update enum type name to match the one in lib
[mirror_edk2.git] / SecurityPkg / Library / Tpm2DeviceLibRouter / Tpm2DeviceLibRouterPei.c
index f59b7bf1ba30e59305a55cafa385ae160f34d067..7470fe347de3e9899436060717409fdf0d873901 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
-  Ihis library is TPM2 device router. Platform can register multi TPM2 instance to it\r
+  This library is TPM2 device router. Platform can register multi TPM2 instance to it\r
   via PcdTpmInstanceGuid. Platform need make choice that which one will be final one.\r
   At most one TPM2 instance can be finally registered, and other will return unsupported.\r
 \r
-Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
+Copyright (c) 2013 - 2017, 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
@@ -22,7 +22,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/Tpm2DeviceLib.h>\r
 \r
 EFI_GUID mInternalTpm2DeviceInterfaceGuid = {\r
-  0x349cf818, 0xc0ba, 0x4c43, 0x92, 0x9a, 0xc8, 0xa1, 0xb1, 0xb3, 0xd2, 0x55\r
+  0x349cf818, 0xc0ba, 0x4c43, { 0x92, 0x9a, 0xc8, 0xa1, 0xb1, 0xb3, 0xd2, 0x55 }\r
 };\r
 \r
 /**\r
@@ -120,7 +120,7 @@ Tpm2RegisterTpm2DeviceLib (
   TPM2_DEVICE_INTERFACE *Tpm2DeviceInterface;\r
 \r
   if (!CompareGuid (PcdGetPtr(PcdTpmInstanceGuid), &Tpm2Device->ProviderGuid)){\r
-    DEBUG ((EFI_D_ERROR, "WARNING: Tpm2RegisterTpm2DeviceLib - does not support %g registration\n", &Tpm2Device->ProviderGuid));\r
+    DEBUG ((DEBUG_WARN, "WARNING: Tpm2RegisterTpm2DeviceLib - does not support %g registration\n", &Tpm2Device->ProviderGuid));\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
@@ -129,7 +129,7 @@ Tpm2RegisterTpm2DeviceLib (
     //\r
     // In PEI phase, there will be shadow driver dispatched again.\r
     //\r
-    DEBUG ((EFI_D_ERROR, "Tpm2RegisterTpm2DeviceLib - Override\n"));\r
+    DEBUG ((EFI_D_INFO, "Tpm2RegisterTpm2DeviceLib - Override\n"));\r
     CopyMem (Tpm2DeviceInterface, Tpm2Device, sizeof(*Tpm2Device));\r
     return EFI_SUCCESS;\r
   } else {\r