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
Nice job, making umoddi3 call umoddi3 in the usermode stuff :(
[tpg/acess2.git]
/
Kernel
/
logging.c
diff --git
a/Kernel/logging.c
b/Kernel/logging.c
index
54f16ca
..
507ff07
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,7
+123,7
@@
void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args)
*/
void Log_Int_PrintMessage(tLogEntry *Entry)
{
- LogF("%s%01
8
lli%s [%+8s] %s\x1B[0m\n",
+ LogF("%s%01
4
lli%s [%+8s] %s\x1B[0m\n",
csaLevelColours[Entry->Level],
Entry->Time,
csaLevelCodes[Entry->Level],
UCC
git Repository :: git.ucc.asn.au