Skip to content
Snippets Groups Projects
Commit 82103577 authored by John Hodge's avatar John Hodge
Browse files

Kernel - Added current thread ID to log messages

parent 245e360b
Branches
Tags
No related merge requests found
......@@ -157,11 +157,12 @@ void Log_AddEvent(const char *Ident, int Level, const char *Format, va_list Args
void Log_Int_PrintMessage(tLogEntry *Entry)
{
SHORTLOCK( &glLogOutput );
LogF("%s%014lli%s [%-8s] %s",
LogF("%s%014lli%s [%-8s] %i - %s",
csaLevelColours[Entry->Level],
Entry->Time,
csaLevelCodes[Entry->Level],
Entry->Ident,
Threads_GetTID(),
Entry->Data
);
LogF("\x1B[0m\r\n"); // Separate in case Entry->Data is too long
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment