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