Log: Update formatting to make ANSI weirdness more sensible
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
703c3f44fb
commit
e2a6cba3c6
@ -22,7 +22,10 @@ static void log_serial(LogLevel level, const char* format, va_list origin)
|
||||
va_list ap;
|
||||
va_copy(ap, origin);
|
||||
|
||||
Serial::printf("\x1b[%sm%c\x1b[0m ", ansi_color_codes_per_log_level[(int)level], log_level_letters[(int)level]);
|
||||
Serial::printf("\x1b[%sm"
|
||||
"%c"
|
||||
"\x1b[0m ",
|
||||
ansi_color_codes_per_log_level[(int)level], log_level_letters[(int)level]);
|
||||
|
||||
Serial::printf("%4zu.%.3zu ", Timer::ticks(), Timer::ticks_ms() - (Timer::ticks() * 1000));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user