Kernel/debug - make Panic() emit red text
authorJohn Hodge <[email protected]>
Sat, 31 May 2014 05:45:29 +0000 (13:45 +0800)
committerJohn Hodge <[email protected]>
Sat, 31 May 2014 05:45:29 +0000 (13:45 +0800)
KernelLand/Kernel/debug.c

index d0de25a..b32036e 100644 (file)
@@ -249,12 +249,12 @@ void Panic(const char *Fmt, ...)
        
        Debug_KernelPanic();
        
+       Debug_Puts(1, "\x1b[31m");
        Debug_Puts(1, "Panic: ");
        va_start(args, Fmt);
        Debug_Fmt(1, Fmt, args);
        va_end(args);
-       Debug_Putchar('\r');
-       Debug_Putchar('\n');
+       Debug_Puts(1, "\x1b[0m\r\n");
 
        Proc_PrintBacktrace();
        //Threads_Dump();

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