Do not use `WOLFSSL_MSG`.

Fixes:
```
/usr/bin/ld: src/.libs/libwolftpm.a(libwolftpm_la-tpm2.o): in function `TPM2_AcquireLock':
/home/pi/wolftpm/src/tpm2.c:66: undefined reference to `WOLFSSL_MSG'
```
pull/173/head
David Garske 2021-06-04 09:28:50 -07:00
parent 9215f6af3f
commit b268177c39
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ static TPM_RC TPM2_AcquireLock(TPM2_CTX* ctx)
if (!ctx->hwLockInit) {
if (wc_InitMutex(&ctx->hwLock) != 0) {
WOLFSSL_MSG("TPM Mutex Init failed");
#ifdef DEBUG_WOLFTPM
printf("TPM Mutex Init failed\n");
#endif
return TPM_RC_FAILURE;
}
ctx->hwLockInit = 1;