diff --git a/kernel/src/std/stdio.cpp b/kernel/src/std/stdio.cpp index 084db751..93ce38da 100644 --- a/kernel/src/std/stdio.cpp +++ b/kernel/src/std/stdio.cpp @@ -50,7 +50,7 @@ static int internal_printf(const char* format, PutString put_string_callback, ss char current_char = format[format_index]; if (current_char == '%' || preserve_format) { - if (format_index + 1 == format_size) // end of format string + if (!preserve_format && format_index + 1 == format_size) // end of format string { format_index++; continue;