printf: fix %% doubling down as a format specifier

When parsing a %% format, the second % character was mistakenly not
skipped over after emitting a '%' output; this resulted in it being
treated as a format specifier. For instance,

  printf("%%d", 12);

would print "%12".
This commit is contained in:
Lephe 2020-06-14 08:15:00 +02:00
parent 610362f8c9
commit 41294ec0a4
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ void kprint(char const *format, va_list *args)
if(c == '%')
{
kprint_out('%');
format++;
continue;
}