From 9bee0281cb9a4787b394627b0bf2c18c76dc7703 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 11 May 2022 11:40:54 -0600 Subject: [PATCH] print out test errors to stderr instead of stdout --- wolfssl/test.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfssl/test.h b/wolfssl/test.h index 72e0b1a1c..36a3d0308 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -606,7 +606,7 @@ err_sys(const char* msg) if (msg) #endif { - printf("wolfSSL error: %s\n", msg); + fprintf(stderr, "wolfSSL error: %s\n", msg); } XEXIT_T(EXIT_FAILURE); } @@ -630,9 +630,9 @@ err_sys_with_errno(const char* msg) #endif { #if defined(HAVE_STRING_H) && defined(HAVE_ERRNO_H) - printf("wolfSSL error: %s: %s\n", msg, strerror(errno)); + fprintf(stderr, "wolfSSL error: %s: %s\n", msg, strerror(errno)); #else - printf("wolfSSL error: %s\n", msg); + fprintf(stderr, "wolfSSL error: %s\n", msg); #endif } XEXIT_T(EXIT_FAILURE);