summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-22 23:38:33 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-22 23:38:33 +0200
commit2d7cad6a167aa1d8b4103373f638a4fd498d9a76 (patch)
tree006813e8bb6fe0f2517d2cb3d8c3a1a741935f52 /AK
parent5c68929aa1724867eec6b65c0ae50dc8a8d4c589 (diff)
downloadserenity-2d7cad6a167aa1d8b4103373f638a4fd498d9a76.zip
Kernel: Make sure we don't use any FPU/MMX/SSE instructions.
Diffstat (limited to 'AK')
-rw-r--r--AK/printf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/AK/printf.cpp b/AK/printf.cpp
index 31803c9796..68d29e5dc6 100644
--- a/AK/printf.cpp
+++ b/AK/printf.cpp
@@ -248,10 +248,12 @@ one_more:
ret += print_hex(putch, bufptr, va_arg(ap, qword), 16);
break;
+#ifndef KERNEL
case 'f':
// FIXME: Print as float!
ret += print_number(putch, bufptr, (int)va_arg(ap, double), leftPad, zeroPad, fieldWidth);
break;
+#endif
case 'o':
if (alternate_form) {