X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Flogging.c;h=c00746ae1d11abc01ded08579f10808a8435b240;hb=4f1a9b430a3fa57bbe52a6a2fe546f6fe93c389d;hp=17888a712dbd013a0ac62c36f1e9c45338c27e78;hpb=9d85201216cb35e1b1e051b1d7cdc38eaa5befa4;p=tpg%2Facess2.git diff --git a/Kernel/logging.c b/Kernel/logging.c index 17888a71..c00746ae 100644 --- a/Kernel/logging.c +++ b/Kernel/logging.c @@ -113,7 +113,7 @@ void Log_AddEvent(const char *Ident, int Level, const char *Format, va_list Args char newData[ LOG_HDR_LEN + len + 2 + 1 ]; char _ident[9]; strncpy(_ident, Ident, 9); - sprintf( newData, "%014lli%s [%+8s] ", + sprintf( newData, "%014lli%s [%-8s] ", ent->Time, csaLevelCodes[Level], Ident); strcpy( newData + LOG_HDR_LEN, ent->Data ); strcpy( newData + LOG_HDR_LEN + len, "\r\n" ); @@ -153,13 +153,14 @@ 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\x1B[0m\r\n", + LogF("%s%014lli%s [%-8s] %s", csaLevelColours[Entry->Level], Entry->Time, csaLevelCodes[Entry->Level], Entry->Ident, Entry->Data ); + LogF("\x1B[0m\r\n"); // Separate in case Entry->Data is too long SHORTREL( &glLogOutput ); }