This commit is contained in:
parent
042f999677
commit
703c3f44fb
@ -26,6 +26,7 @@ static void log_serial(LogLevel level, const char* format, va_list origin)
|
|||||||
|
|
||||||
Serial::printf("%4zu.%.3zu ", Timer::ticks(), Timer::ticks_ms() - (Timer::ticks() * 1000));
|
Serial::printf("%4zu.%.3zu ", Timer::ticks(), Timer::ticks_ms() - (Timer::ticks() * 1000));
|
||||||
|
|
||||||
|
// FIXME: We do this manually because of a lack of vprintf() in both Serial and TextConsole.
|
||||||
pure_cstyle_format(
|
pure_cstyle_format(
|
||||||
format, [](char c, void*) { Serial::putchar((u8)c); }, nullptr, ap);
|
format, [](char c, void*) { Serial::putchar((u8)c); }, nullptr, ap);
|
||||||
|
|
||||||
@ -50,6 +51,7 @@ static void log_text_console(LogLevel level, const char* format, va_list origin)
|
|||||||
else
|
else
|
||||||
TextConsole::set_foreground(WHITE);
|
TextConsole::set_foreground(WHITE);
|
||||||
|
|
||||||
|
// FIXME: Same as above.
|
||||||
pure_cstyle_format(
|
pure_cstyle_format(
|
||||||
format, [](char c, void*) { TextConsole::putchar(c); }, nullptr, ap);
|
format, [](char c, void*) { TextConsole::putchar(c); }, nullptr, ap);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user