]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/Tpm2CommandLib/Tpm2Startup.c
SecurityPkg: Fix bug in TPM 1.2 SelfTest
[mirror_edk2.git] / SecurityPkg / Library / Tpm2CommandLib / Tpm2Startup.c
index f67043b84b9d6e4df49427bd3f92dfcf9ca6b56f..dc2c5628f9201caac3259a3a286b7beb8c912a1d 100644 (file)
@@ -2,6 +2,7 @@
   Implement TPM2 Startup related command.\r
 \r
 Copyright (c) 2013 - 2016, 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
@@ -75,8 +76,11 @@ Tpm2Startup (
   ResponseCode = SwapBytes32(Res.Header.responseCode);\r
   switch (ResponseCode)  {\r
   case TPM_RC_SUCCESS:\r
+    DEBUG ((DEBUG_INFO, "TPM2Startup: TPM_RC_SUCCESS\n"));\r
+    return EFI_SUCCESS;\r
   case TPM_RC_INITIALIZE:\r
     // TPM_RC_INITIALIZE can be returned if Tpm2Startup is not required.\r
+    DEBUG ((DEBUG_INFO, "TPM2Startup: TPM_RC_INITIALIZE\n"));\r
     return EFI_SUCCESS;\r
   default:\r
     DEBUG ((EFI_D_ERROR, "Tpm2Startup: Response Code error! 0x%08x\r\n", ResponseCode));\r