Blame SOURCES/0001-tpm2_nvdefine.c-Fixed-error-reporting-message.patch

fbce52
From 652322f7278ec8c384fde9ec2204b06d084a24e4 Mon Sep 17 00:00:00 2001
fbce52
From: Imran Desai <imran.desai@intel.com>
fbce52
Date: Thu, 23 Jan 2020 07:54:58 -0700
fbce52
Subject: [PATCH] tpm2_nvdefine.c: Fixed error reporting message
fbce52
fbce52
Fixes #1861
fbce52
fbce52
NV define failure error message had the wording to suggest NV index
fbce52
was successfully defined.
fbce52
fbce52
Signed-off-by: Imran Desai <imran.desai@intel.com>
fbce52
---
fbce52
 tools/tpm2_nvdefine.c | 2 +-
fbce52
 1 file changed, 1 insertion(+), 1 deletion(-)
fbce52
fbce52
diff --git a/tools/tpm2_nvdefine.c b/tools/tpm2_nvdefine.c
fbce52
index cb2949c4dddc..71203cb6c80d 100644
fbce52
--- a/tools/tpm2_nvdefine.c
fbce52
+++ b/tools/tpm2_nvdefine.c
fbce52
@@ -65,7 +65,7 @@ static tool_rc nv_space_define(ESYS_CONTEXT *ectx) {
fbce52
     tool_rc rc = tpm2_nv_definespace(ectx, &ctx.auth_hierarchy.object,
fbce52
             &ctx.nv_auth, &public_info);
fbce52
     if (rc != tool_rc_success) {
fbce52
-        LOG_INFO("Success to define NV area at index 0x%x.", ctx.nv_index);
fbce52
+        LOG_ERR("Failed to create NV index 0x%x.", ctx.nv_index);
fbce52
         return rc;
fbce52
     }
fbce52
 
fbce52
-- 
fbce52
2.27.0
fbce52