mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 15:53:55 +00:00
Added ability to log control channel messages
This commit is contained in:
@@ -9355,6 +9355,18 @@ char* ILibCriticalLog (const char* msg, const char* file, int line, int user1, i
|
||||
}
|
||||
return(ILibCriticalLogBuffer);
|
||||
}
|
||||
void ILIBLOGMESSAGEX(char *format, ...)
|
||||
{
|
||||
char dest[4096];
|
||||
int len = 0;
|
||||
va_list argptr;
|
||||
|
||||
va_start(argptr, format);
|
||||
len += vsnprintf(dest + len, sizeof(dest) - len, format, argptr);
|
||||
va_end(argptr);
|
||||
|
||||
ILIBLOGMESSSAGE(dest);
|
||||
}
|
||||
//! Platform Agnostic method to Spawn a detached worker thread with normal priority/affinity
|
||||
/*!
|
||||
\param method Handler to dispatch on the new thread
|
||||
|
||||
Reference in New Issue
Block a user