From 314acbfe21b6bcee500a1b5b98e7645916b89ea7 Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 6 Dec 2022 19:31:41 +0100 Subject: [PATCH] Change the serial log to display only milliseconds --- kernel/src/Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/Log.cpp b/kernel/src/Log.cpp index 0b008e58..2dd3291b 100644 --- a/kernel/src/Log.cpp +++ b/kernel/src/Log.cpp @@ -25,7 +25,7 @@ static Result log_serial(LogLevel level, const char* format, va_list origi TRY(Serial::printf("\x1b[%sm%c\x1b[0m ", ansi_color_codes_per_log_level[(int)level], log_level_letters[(int)level])); - TRY(Serial::printf("[%6zu.%.6zu] ", Timer::ticks(), Timer::ticks_us() - (Timer::ticks() * 1000000))); + TRY(Serial::printf("%4zu.%.3zu ", Timer::ticks(), Timer::ticks_ms() - (Timer::ticks() * 1000))); TRY(cstyle_format( format,