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
Division bug hidden, now only shows when 64-bit division is needed
[tpg/acess2.git]
/
Kernel
/
logging.c
diff --git
a/Kernel/logging.c
b/Kernel/logging.c
index
747094d
..
507ff07
100644
(file)
--- a/
Kernel/logging.c
+++ b/
Kernel/logging.c
@@
-65,6
+65,7
@@
EXPORT(Log_Debug);
// === GLOBALS ===
tSpinlock glLog;
// === GLOBALS ===
tSpinlock glLog;
+tSpinlock glLogOutput;
tLogList gLog;
tLogList gLog_Levels[NUM_LOG_LEVELS];
tLogList gLog;
tLogList gLog_Levels[NUM_LOG_LEVELS];
@@
-76,10
+77,12
@@
void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args)
{
int len;
tLogEntry *ent;
{
int len;
tLogEntry *ent;
+ va_list args_tmp;
if( Level >= NUM_LOG_LEVELS ) return;
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);
//Log("len = %i", len);
@@
-120,7
+123,7
@@
void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args)
*/
void Log_Int_PrintMessage(tLogEntry *Entry)
{
*/
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],
csaLevelColours[Entry->Level],
Entry->Time,
csaLevelCodes[Entry->Level],
UCC
git Repository :: git.ucc.asn.au