More professional dmesg
This commit is contained in:
parent
9930a45163
commit
df8ba9e3ea
|
@ -25,6 +25,7 @@
|
|||
#include <lib/buf.h>
|
||||
#include <kernel.h>
|
||||
#include <ke/time.h>
|
||||
#include <io/vga.h>
|
||||
|
||||
//
|
||||
// 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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue