]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/TrEEConfig/TpmDetection.c
Fix execution status & DEBUG message level mismatch. EFI_D_ERROR is used only...
[mirror_edk2.git] / SecurityPkg / Tcg / TrEEConfig / TpmDetection.c
index 516f7c92a3097787ec3a9c4665db92cf555e3ba9..3706c2c96793c9c3a9934ec448ec04086bf062c2 100644 (file)
@@ -46,7 +46,7 @@ IsDtpmPresent (
     DEBUG ((EFI_D_ERROR, "DetectTpmDevice: Dtpm not present\n"));\r
     return FALSE;\r
   } else {\r
-    DEBUG ((EFI_D_ERROR, "DetectTpmDevice: Dtpm present\n"));\r
+    DEBUG ((EFI_D_INFO, "DetectTpmDevice: Dtpm present\n"));\r
     return TRUE;\r
   }\r
 }\r
@@ -76,7 +76,7 @@ DetectTpmDevice (
   // In S3, we rely on normal boot Detection, because we save to ReadOnly Variable in normal boot.\r
   //\r
   if (BootMode == BOOT_ON_S3_RESUME) {\r
-    DEBUG ((EFI_D_ERROR, "DetectTpmDevice: S3 mode\n"));\r
+    DEBUG ((EFI_D_INFO, "DetectTpmDevice: S3 mode\n"));\r
 \r
     Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariable2PpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
     ASSERT_EFI_ERROR (Status);\r
@@ -99,7 +99,7 @@ DetectTpmDevice (
     }\r
   }\r
 \r
-  DEBUG ((EFI_D_ERROR, "DetectTpmDevice:\n"));\r
+  DEBUG ((EFI_D_INFO, "DetectTpmDevice:\n"));\r
   if (!IsDtpmPresent ()) {\r
     // dTPM not available\r
     return TPM_DEVICE_NULL;\r