AK: Swallow 'L' format specifier until it is properly implemented

Previously if code attempted to use the format specifier somewhere
(Ex: "%#4.3Lg"), the specifier would get dropped and we would just
print "g" instead of any value. Now at least we print a value.
This commit is contained in:
Brian Gianforcaro 2021-11-14 03:45:51 -08:00 committed by Linus Groh
parent 0ddb877f87
commit d1806d44fa

View file

@ -467,6 +467,12 @@ ALWAYS_INLINE int printf_internal(PutChFunc putch, char* buffer, const char*& fm
if (*(p + 1))
goto one_more;
}
if (*p == 'L') {
// TODO: Implement this properly.
// For now just swallow, so the contents are actually rendered.
if (*(p + 1))
goto one_more;
}
if (*p == 'z') {
state.size_qualifier = true;
if (*(p + 1))