From d0bd52910f60e57ce900a6bb43b10efd9dafab96 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 2 Jan 2018 16:09:40 -0800 Subject: [PATCH] Fix for issue with unit test where mutliple threads are outputting log data. --- wolfcrypt/test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 4a647a92c..18a0ffe3b 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -15068,14 +15068,14 @@ done: #endif #ifdef DEBUG_WOLFSSL -static int log_cnt = 0; +static THREAD_LS_T int log_cnt = 0; static void my_Logging_cb(const int logLevel, const char *const logMessage) { (void)logLevel; (void)logMessage; log_cnt++; } -#endif +#endif /* DEBUG_WOLFSSL */ int logging_test(void) {