diff --git a/src/log.c b/src/log.c index 164a2b3..fae48bf 100644 --- a/src/log.c +++ b/src/log.c @@ -147,7 +147,11 @@ void DefaultLoggingCb(enum wolfSSH_LogLevel level, const char *const msgStr) } } #endif /* WOLFSSH_NO_TIMESTAMP */ + #ifndef WOLFSSH_LOG_PRINTF fprintf(stdout, "%s[%s] %s\r\n", timeStr, GetLogStr(level), msgStr); + #else + printf("%s[%s] %s\r\n", timeStr, GetLogStr(level), msgStr); + #endif } #endif /* WOLFSSH_NO_DEFAULT_LOGGING_CB */