Skip to content

Commit f8e4feb

Browse files
committed
wolfssl/wolfcrypt/error-crypt.h: in WC_ERR_TRACE() definition, use WOLFSSL_DEBUG_PRINTF_FN(WOLFSSL_DEBUG_PRINTF_FIRST_ARGS, not WOLFSSL_DEBUG_PRINTF(, for compatibility with WOLF_NO_VARIADIC_MACROS.
1 parent 7df8ee4 commit f8e4feb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

wolfssl/wolfcrypt/error-crypt.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,12 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error);
349349
#endif
350350
#endif
351351
#ifndef WC_ERR_TRACE
352-
#define WC_ERR_TRACE(label) \
353-
( WOLFSSL_DEBUG_PRINTF("ERR TRACE: %s L %d %s (%d)\n", \
354-
__FILE__, __LINE__, #label, label), \
355-
WOLFSSL_DEBUG_BACKTRACE_RENDER_CLAUSE, \
356-
label \
352+
#define WC_ERR_TRACE(label) \
353+
( WOLFSSL_DEBUG_PRINTF_FN(WOLFSSL_DEBUG_PRINTF_FIRST_ARGS \
354+
"ERR TRACE: %s L %d %s (%d)\n", \
355+
__FILE__, __LINE__, #label, label), \
356+
WOLFSSL_DEBUG_BACKTRACE_RENDER_CLAUSE, \
357+
label \
357358
)
358359
#endif
359360
#include <wolfssl/debug-trace-error-codes.h>

0 commit comments

Comments
 (0)