diff --git a/AK/PrintfImplementation.h b/AK/PrintfImplementation.h index 9e8398163a1..325541d384c 100644 --- a/AK/PrintfImplementation.h +++ b/AK/PrintfImplementation.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include @@ -10,7 +11,7 @@ static constexpr const char* printf_hex_digits_upper = "0123456789ABCDEF"; #ifdef __serenity__ extern "C" size_t strlen(const char*); #else -#include +# include #endif template @@ -266,9 +267,9 @@ template goto one_more; } if (*p == '*') { - fieldWidth = va_arg(ap, int); - if (*(p + 1)) - goto one_more; + fieldWidth = va_arg(ap, int); + if (*(p + 1)) + goto one_more; } if (*p == 'l') { ++long_qualifiers; @@ -352,6 +353,7 @@ template ret += print_hex(putch, bufptr, va_arg(ap, u32), *p == 'P', true, true, true, 8); break; default: + dbg() << "printf_internal: Unimplemented format specifier " << *p; ASSERT_NOT_REACHED(); } } else {