Log: Update formatting to make ANSI weirdness more sensible
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2022-12-19 21:42:53 +01:00
parent 703c3f44fb
commit e2a6cba3c6
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -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));