From: John Hodge Date: Sat, 30 Nov 2013 14:37:02 +0000 (+0800) Subject: Kernel - Switched back to standards-compilant printf codes (for AcessNative) X-Git-Tag: rel0.15~70 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=46d1c26964bfee8459207f6b9002b46e15f3ffe6;p=tpg%2Facess2.git Kernel - Switched back to standards-compilant printf codes (for AcessNative) --- diff --git a/KernelLand/Kernel/drv/vterm_termbuf.c b/KernelLand/Kernel/drv/vterm_termbuf.c index abf9897d..dfab4b51 100644 --- a/KernelLand/Kernel/drv/vterm_termbuf.c +++ b/KernelLand/Kernel/drv/vterm_termbuf.c @@ -5,7 +5,7 @@ * drv/vterm_termbuf.c * - Virtual Terminal - Terminal buffer manipulation */ -#define DEBUG 0 +#define DEBUG 1 #include "vterm.h" extern int Term_HandleVT100(tVTerm *Term, int Len, const char *Buf); @@ -24,7 +24,8 @@ void VT_int_PutString(tVTerm *Term, const Uint8 *Buffer, Uint Count) int esc_len = Term_HandleVT100(Term, Count - ofs, (const void*)(Buffer + ofs)); if( esc_len < 0 ) { esc_len = -esc_len; - LOG("%i '%*C'", esc_len, esc_len, Buffer+ofs); + //LOG("%i '%*C'", esc_len, esc_len, Buffer+ofs); + LOG("%i '%.*s'", esc_len, esc_len, Buffer+ofs); VT_int_PutRawString(Term, Buffer + ofs, esc_len); //Debug("Raw string '%.*s'", esc_len, Buffer+ofs); } diff --git a/KernelLand/Kernel/drv/vterm_vt100.c b/KernelLand/Kernel/drv/vterm_vt100.c index 1f635a12..559115d0 100644 --- a/KernelLand/Kernel/drv/vterm_vt100.c +++ b/KernelLand/Kernel/drv/vterm_vt100.c @@ -5,7 +5,7 @@ * drv/vterm_vt100.c * - Virtual Terminal - VT100 (Kinda) Emulation */ -#define DEBUG 0 +#define DEBUG 1 #include "vterm.h" #define sTerminal sVTerm diff --git a/KernelLand/Kernel/logging.c b/KernelLand/Kernel/logging.c index e0f20504..0ae993e5 100644 --- a/KernelLand/Kernel/logging.c +++ b/KernelLand/Kernel/logging.c @@ -163,7 +163,7 @@ void Log_Int_PrintMessage(tLogEntry *Entry) csaLevelColours[Entry->Level], Entry->Time ); - LogF("%s [%-8s] %i - %*C", + LogF("%s [%-8s] %i - %.*s", csaLevelCodes[Entry->Level], Entry->Ident, Threads_GetTID(),