px4_log: comment typo alway{s}

This commit is contained in:
Matthias Grob 2023-10-25 15:42:26 +02:00 committed by Daniel Agar
parent 2ef807eaa0
commit 12b291b82f
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ __EXPORT void px4_log_modulename(int level, const char *module_name, const char
#if defined(PX4_LOG_COLORIZED_OUTPUT)
if (use_color) {
// alway reset color
// always reset color
const ssize_t sz = math::min(pos, max_length - (ssize_t)strlen(PX4_ANSI_COLOR_RESET) - (ssize_t)1);
pos += snprintf(buf + sz, math::max(max_length - sz, (ssize_t)0), "%s\n", PX4_ANSI_COLOR_RESET);