trace: Do not produce dead code calling BIO_printf if disabled
Fixes
@@ -270,11 +270,19 @@ void OSSL_trace_end(int category, BIO *channel);
* 42, "What do you get when you multiply six by nine?");
*/
+# if !defined OPENSSL_NO_TRACE && !defined FIPS_MODULE
+
# define OSSL_TRACEV(category, args) \
OSSL_TRACE_BEGIN(category) \
BIO_printf args; \
OSSL_TRACE_END(category)
+# else
+
+# define OSSL_TRACEV(category, args) ((void)0)
+
+# endif
+
# define OSSL_TRACE(category, text) \
OSSL_TRACEV(category, (trc_out, "%s", text))
