]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/Tpm12CommandLib/Tpm12Startup.c
SecurityPkg: Add DEBUG messages for TPM12Startup
[mirror_edk2.git] / SecurityPkg / Library / Tpm12CommandLib / Tpm12Startup.c
index bc10e4586a68ac31914039347def2464f6a09621..098dd28dc1a9666ef09d1db4a11a9dc0208d14e1 100644 (file)
@@ -2,6 +2,7 @@
   Implement TPM1.2 Startup related command.\r
 \r
 Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
+(C) Copyright 2016 Hewlett Packard Enterprise Development LP<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
@@ -16,6 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/Tpm12DeviceLib.h>\r
+#include <Library/DebugLib.h>\r
 \r
 #pragma pack(1)\r
 \r
@@ -59,8 +61,11 @@ Tpm12Startup (
   }\r
   switch (SwapBytes32(Response.returnCode)) {\r
   case TPM_SUCCESS:\r
+    DEBUG ((DEBUG_INFO, "TPM12Startup: TPM_SUCCESS\n"));\r
+    return EFI_SUCCESS;\r
   case TPM_INVALID_POSTINIT:\r
     // In warm reset, TPM may response TPM_INVALID_POSTINIT\r
+    DEBUG ((DEBUG_INFO, "TPM12Startup: TPM_INVALID_POSTINIT\n"));\r
     return EFI_SUCCESS;\r
   default:\r
     return EFI_DEVICE_ERROR;\r