logging: disable Linux-style timestamp formatting by default

Fix a typo in #43934.

Signed-off-by: Rihards Skuja <rhssk@posteo.eu>
This commit is contained in:
Rihards Skuja 2022-04-13 23:58:16 +03:00 committed by Marti Bolivar
commit d5b83a8c90

View file

@ -287,13 +287,13 @@ static int timestamp_print(const struct log_output *output,
#endif
} else {
if (IS_ENABLED(CONFIG_LOG_OUTPUT_FORMAT_LINUX_TIMESTAMP)) {
length = print_formatted(output,
"[%02u:%02u:%02u.%03u,%03u] ",
hours, mins, seconds, ms, us);
} else {
length = print_formatted(output,
"[%5ld.%06d] ",
total_seconds, ms * 1000U + us);
} else {
length = print_formatted(output,
"[%02u:%02u:%02u.%03u,%03u] ",
hours, mins, seconds, ms, us);
}
}
} else {