From 82103577346df38b28c5b8448783e36a4ba4e993 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 28 Aug 2011 12:07:58 +0800 Subject: [PATCH] Kernel - Added current thread ID to log messages --- Kernel/logging.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/logging.c b/Kernel/logging.c index 3e33b6ae..0cfc3ded 100644 --- a/Kernel/logging.c +++ b/Kernel/logging.c @@ -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 -- 2.20.1