We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df956fb commit 4064c4fCopy full SHA for 4064c4f
1 file changed
src/fwtpm/fwtpm_nv.c
@@ -1121,11 +1121,13 @@ int FWTPM_NV_Init(FWTPM_CTX* ctx)
1121
1122
/* Save initial state (compact write) */
1123
rc = FWTPM_NV_Save(ctx);
1124
- #ifdef DEBUG_WOLFTPM
1125
if (rc != TPM_RC_SUCCESS) {
1126
- printf("fwTPM: Warning: Failed to save initial NV state\n");
+ #ifdef DEBUG_WOLFTPM
+ printf("fwTPM: Warning: Failed to save initial NV state (%d)\n",
1127
+ rc);
1128
+ #endif
1129
+ rc = TPM_RC_SUCCESS; /* Non-fatal: fwTPM can operate without NV */
1130
}
- #endif
1131
1132
1133
XFREE(valueBuf, NULL, DYNAMIC_TYPE_TMP_BUFFER);
0 commit comments