X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Flogging.c;h=18f75fb6e0303785fc25e773287f294e1ec8a9ba;hb=5c9451f7e03edf59a3066853ae544c9d120bf90a;hp=72856db1b33800713889c8cff296447e0e26e357;hpb=ffb2e56a3b6c55a23c817dd11b1c46c647db79de;p=tpg%2Facess2.git diff --git a/Kernel/logging.c b/Kernel/logging.c index 72856db1..18f75fb6 100644 --- a/Kernel/logging.c +++ b/Kernel/logging.c @@ -29,9 +29,9 @@ typedef struct sLogEntry struct sLogEntry *Next; struct sLogEntry *LevelNext; Sint64 Time; - char Ident[8]; int Level; int Length; + char Ident[9]; char Data[]; } tLogEntry; typedef struct sLogList @@ -83,7 +83,7 @@ void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args) ent = malloc(sizeof(tLogEntry)+len+1); ent->Time = now(); - strncpy(ent->Ident, Ident, 7); + strncpy(ent->Ident, Ident, 8); ent->Level = Level; ent->Length = len; vsnprintf( ent->Data, 256, Format, Args ); @@ -118,7 +118,7 @@ void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args) */ void Log_Int_PrintMessage(tLogEntry *Entry) { - LogF("%018lli%s [%8s] %s\n", + LogF("%018lli%s [%+8s] %s\n", Entry->Time, csaLevelCodes[Entry->Level], Entry->Ident,