From b268177c39c47e477428f7fb53289ca5d355b66b Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 4 Jun 2021 09:28:50 -0700 Subject: [PATCH] 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' ``` --- src/tpm2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tpm2.c b/src/tpm2.c index 68757ec..f07abe0 100644 --- a/src/tpm2.c +++ b/src/tpm2.c @@ -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;