diff --git a/member-tpm.c b/member-tpm.c index ae6993a..611a360 100644 --- a/member-tpm.c +++ b/member-tpm.c @@ -147,8 +147,9 @@ static int tpm_initialize(struct tpm_context *ctx, const char *pub_key_filename, } //initialize ecdaa tpm context - if(0 != ecdaa_tpm_context_init(&ctx->tpm_ctx, key_handle, NULL, 0, ctx->tcti_context)) { - printf("Error: ECDAA context failed.\n"); + ret = ecdaa_tpm_context_init(&ctx->tpm_ctx, key_handle, NULL, 0, ctx->tcti_context); + if ( 0 != ret) { + printf("Error: ECDAA context failed: ret = 0x%x\n", ret); return -1; } #ifdef DEBUG