git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bit of debug cleanup, fixing bugs found on GrUB2
[tpg/acess2.git]
/
Kernel
/
logging.c
diff --git
a/Kernel/logging.c
b/Kernel/logging.c
index
54f16ca
..
1895b5b
100644
(file)
--- a/
Kernel/logging.c
+++ b/
Kernel/logging.c
@@
-77,10
+77,12
@@
void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args)
{
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);
@@
-121,13
+123,15
@@
void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args)
*/
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 );
}
/**
UCC
git Repository :: git.ucc.asn.au