We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 575df43 commit 6952d1aCopy full SHA for 6952d1a
1 file changed
wolfssl/wolfcrypt/error-crypt.h
@@ -300,10 +300,16 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error);
300
#ifdef WOLFSSL_DEBUG_TRACE_ERROR_CODES
301
#define WC_NO_ERR_TRACE(label) (CONST_NUM_ERR_ ## label)
302
#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
308
#define WC_ERR_TRACE(label) \
309
( fprintf(stderr, \
310
"ERR TRACE: %s L %d " #label " (%d)\n", \
311
__FILE__, __LINE__, label), label)
312
+ #endif
313
#endif
314
#include <wolfssl/debug-trace-error-codes.h>
315
#else
0 commit comments