forked from wolfSSL/wolfssl
change internal log function name from log (math builtin)
This commit is contained in:
@ -72,7 +72,7 @@ void CyaSSL_Debugging_OFF(void)
|
|||||||
int dc_log_printf(char*, ...);
|
int dc_log_printf(char*, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void log(const int logLevel, const char *const logMessage)
|
static void cyassl_log(const int logLevel, const char *const logMessage)
|
||||||
{
|
{
|
||||||
if (log_function)
|
if (log_function)
|
||||||
log_function(logLevel, logMessage);
|
log_function(logLevel, logMessage);
|
||||||
@ -94,7 +94,7 @@ static void log(const int logLevel, const char *const logMessage)
|
|||||||
|
|
||||||
void CYASSL_MSG(const char* msg)
|
void CYASSL_MSG(const char* msg)
|
||||||
{
|
{
|
||||||
log(INFO_LOG , msg);
|
cyassl_log(INFO_LOG , msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ void CYASSL_ENTER(const char* msg)
|
|||||||
if (loggingEnabled) {
|
if (loggingEnabled) {
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
sprintf(buffer, "CyaSSL Entering %s", msg);
|
sprintf(buffer, "CyaSSL Entering %s", msg);
|
||||||
log(ENTER_LOG , buffer);
|
cyassl_log(ENTER_LOG , buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ void CYASSL_LEAVE(const char* msg, int ret)
|
|||||||
if (loggingEnabled) {
|
if (loggingEnabled) {
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
sprintf(buffer, "CyaSSL Leaving %s, return %d", msg, ret);
|
sprintf(buffer, "CyaSSL Leaving %s, return %d", msg, ret);
|
||||||
log(LEAVE_LOG , buffer);
|
cyassl_log(LEAVE_LOG , buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,7 +123,7 @@ void CYASSL_ERROR(int error)
|
|||||||
if (loggingEnabled) {
|
if (loggingEnabled) {
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
sprintf(buffer, "CyaSSL error occured, error = %d", error);
|
sprintf(buffer, "CyaSSL error occured, error = %d", error);
|
||||||
log(ERROR_LOG , buffer);
|
cyassl_log(ERROR_LOG , buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user