printf: Treat %g as %f for now.

This commit is contained in:
Andreas Kling 2019-06-18 09:46:39 +02:00
commit 9f7c11710f
Notes: sideshowbarker 2024-07-19 13:33:07 +09:00

View file

@ -243,6 +243,7 @@ template<typename PutChFunc>
break;
#ifndef KERNEL
case 'g':
case 'f':
// FIXME: Print as float!
ret += print_number(putch, bufptr, (int)va_arg(ap, double), leftPad, zeroPad, fieldWidth);