Kernel - Switched back to standards-compilant printf codes (for AcessNative)
authorJohn Hodge <[email protected]>
Sat, 30 Nov 2013 14:37:02 +0000 (22:37 +0800)
committerJohn Hodge <[email protected]>
Sat, 30 Nov 2013 14:37:02 +0000 (22:37 +0800)
KernelLand/Kernel/drv/vterm_termbuf.c
KernelLand/Kernel/drv/vterm_vt100.c
KernelLand/Kernel/logging.c

index abf9897..dfab4b5 100644 (file)
@@ -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);
                }
index 1f635a1..559115d 100644 (file)
@@ -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
index e0f2050..0ae993e 100644 (file)
@@ -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(),

UCC git Repository :: git.ucc.asn.au