forked from wolfSSL/wolfssl
ThreadX/NetX warning and optional dc_log_printf exclusion
This commit is contained in:
4
src/io.c
4
src/io.c
@ -1402,6 +1402,8 @@ int NetX_Receive(WOLFSSL *ssl, char *buf, int sz, void *ctx)
|
||||
ULONG copied = 0;
|
||||
UINT status;
|
||||
|
||||
(void)ssl;
|
||||
|
||||
if (nxCtx == NULL || nxCtx->nxSocket == NULL) {
|
||||
WOLFSSL_MSG("NetX Recv NULL parameters");
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
@ -1455,6 +1457,8 @@ int NetX_Send(WOLFSSL* ssl, char *buf, int sz, void *ctx)
|
||||
NX_PACKET_POOL* pool; /* shorthand */
|
||||
UINT status;
|
||||
|
||||
(void)ssl;
|
||||
|
||||
if (nxCtx == NULL || nxCtx->nxSocket == NULL) {
|
||||
WOLFSSL_MSG("NetX Send NULL parameters");
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
@ -121,7 +121,7 @@ void wolfSSL_Debugging_OFF(void)
|
||||
#include <stdio.h> /* for default printf stuff */
|
||||
#endif
|
||||
|
||||
#ifdef THREADX
|
||||
#if defined(THREADX) && !defined(THREADX_NO_DC_PRINTF)
|
||||
int dc_log_printf(char*, ...);
|
||||
#endif
|
||||
|
||||
@ -131,7 +131,7 @@ static void wolfssl_log(const int logLevel, const char *const logMessage)
|
||||
log_function(logLevel, logMessage);
|
||||
else {
|
||||
if (loggingEnabled) {
|
||||
#ifdef THREADX
|
||||
#if defined(THREADX) && !defined(THREADX_NO_DC_PRINTF)
|
||||
dc_log_printf("%s\n", logMessage);
|
||||
#elif defined(MICRIUM)
|
||||
#if (NET_SECURE_MGR_CFG_EN == DEF_ENABLED)
|
||||
|
Reference in New Issue
Block a user