Skip to content

Commit 6952d1a

Browse files
committed
wolfssl/wolfcrypt/error-crypt.h: add NO_STDIO_FILESYSTEM definition for WC_ERR_TRACE().
1 parent 575df43 commit 6952d1a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

wolfssl/wolfcrypt/error-crypt.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,16 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error);
300300
#ifdef WOLFSSL_DEBUG_TRACE_ERROR_CODES
301301
#define WC_NO_ERR_TRACE(label) (CONST_NUM_ERR_ ## label)
302302
#ifndef WC_ERR_TRACE
303+
#ifdef NO_STDIO_FILESYSTEM
304+
#define WC_ERR_TRACE(label) \
305+
( printf("ERR TRACE: %s L %d " #label " (%d)\n", \
306+
__FILE__, __LINE__, label), label)
307+
#else
303308
#define WC_ERR_TRACE(label) \
304309
( fprintf(stderr, \
305310
"ERR TRACE: %s L %d " #label " (%d)\n", \
306311
__FILE__, __LINE__, label), label)
312+
#endif
307313
#endif
308314
#include <wolfssl/debug-trace-error-codes.h>
309315
#else

0 commit comments

Comments
 (0)