From 46d1c26964bfee8459207f6b9002b46e15f3ffe6 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 30 Nov 2013 22:37:02 +0800 Subject: [PATCH 1/1] Kernel - Switched back to standards-compilant printf codes (for AcessNative) --- KernelLand/Kernel/drv/vterm_termbuf.c | 5 +++-- KernelLand/Kernel/drv/vterm_vt100.c | 2 +- KernelLand/Kernel/logging.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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(), -- 2.20.1