diff --git a/kaleid/kernel/ke/log.c b/kaleid/kernel/ke/log.c index 7695991..b2ea268 100644 --- a/kaleid/kernel/ke/log.c +++ b/kaleid/kernel/ke/log.c @@ -25,6 +25,7 @@ #include #include #include +#include // // Prints formatted string on standard output @@ -51,7 +52,19 @@ void DebugLog(const char *fmt, ...) va_list ap; va_start(ap, fmt); - BPrintOnBuf(BStdDbg, "[%d]\t", ticks); + + if (ticks) { + BPrintOnBuf(BStdDbg, "[%C%9d%C]\t", + VGA_COLOR_LIGHT_BROWN, + ticks, + VGA_COLOR_LIGHT_GREY); + } else { + BPrintOnBuf(BStdDbg, "[%C%s%C]\t", + VGA_COLOR_GREEN, + " ok", + VGA_COLOR_LIGHT_GREY); + } + BPrintOnBufV(BStdDbg, fmt, ap); va_end(ap); }