// === GLOBALS ===
tSpinlock glLog;
+tSpinlock glLogOutput;
tLogList gLog;
tLogList gLog_Levels[NUM_LOG_LEVELS];
{
int len;
tLogEntry *ent;
+ va_list args_tmp;
if( Level >= NUM_LOG_LEVELS ) return;
- len = vsnprintf(NULL, 256, Format, Args);
+ va_copy(args_tmp, Args);
+ len = vsnprintf(NULL, 256, Format, args_tmp);
//Log("len = %i", len);
*/
void Log_Int_PrintMessage(tLogEntry *Entry)
{
- LogF("%s%018lli%s [%+8s] %s\x1B[0m\n",
+ //LOCK( &glLogOutput );
+ LogF("%s%014lli%s [%+8s] %s\x1B[0m\r\n",
csaLevelColours[Entry->Level],
Entry->Time,
csaLevelCodes[Entry->Level],
Entry->Ident,
Entry->Data
);
+ //RELEASE( &glLogOutput );
}
/**