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
Kernel/Debug - Fix normal log lines to be printed in one go
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
logging.c
diff --git
a/KernelLand/Kernel/logging.c
b/KernelLand/Kernel/logging.c
index
46d4c04
..
3ccfef2
100644
(file)
--- a/
KernelLand/Kernel/logging.c
+++ b/
KernelLand/Kernel/logging.c
@@
-158,18
+158,18
@@
void Log_Int_PrintMessage(tLogEntry *Entry)
if( CPU_HAS_LOCK(&glLogOutput) )
return ; // TODO: Error?
SHORTLOCK( &glLogOutput );
if( CPU_HAS_LOCK(&glLogOutput) )
return ; // TODO: Error?
SHORTLOCK( &glLogOutput );
- LogF("%s%014lli",
+ bool completed = LogF(
+ "%s%014lli%s [%-8s] %i - %.*s\x1B[0m\r\n",
csaLevelColours[Entry->Level],
csaLevelColours[Entry->Level],
- Entry->Time
- );
- LogF("%s [%-8s] %i - %.*s",
+ Entry->Time,
csaLevelCodes[Entry->Level],
Entry->Ident,
Threads_GetTID(),
Entry->Length,
Entry->Data
);
csaLevelCodes[Entry->Level],
Entry->Ident,
Threads_GetTID(),
Entry->Length,
Entry->Data
);
- LogF("\x1B[0m\r\n"); // Separate in case Entry->Data is too long
+ if( !completed )
+ LogF("\x1B[0m\r\n"); // Separate in case Entry->Data is too long
SHORTREL( &glLogOutput );
}
SHORTREL( &glLogOutput );
}
UCC
git Repository :: git.ucc.asn.au