summaryrefslogtreecommitdiff
path: root/Kernel/Console.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-26 11:27:42 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-26 11:27:42 +0200
commit546ddd7de02e16730acc8c8bbadaed9bcbc75827 (patch)
tree7b4b0fd2f4dd83f5e26fcd32b8c6eaafcd683f64 /Kernel/Console.cpp
parent6312c3f25334cd32e0f53a7653602e56558a4bc6 (diff)
downloadserenity-546ddd7de02e16730acc8c8bbadaed9bcbc75827.zip
Remove logspam in /dev/{full,null,zero} now that they work just fine.
Also don't echo anything to console when putch'ing '\0'.
Diffstat (limited to 'Kernel/Console.cpp')
-rw-r--r--Kernel/Console.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Console.cpp b/Kernel/Console.cpp
index 02154010b7..08ecedd0d8 100644
--- a/Kernel/Console.cpp
+++ b/Kernel/Console.cpp
@@ -40,6 +40,8 @@ void Console::putChar(char ch)
IO::out8(0xe9, ch);
#endif
switch (ch) {
+ case '\0':
+ return;
case '\n':
m_cursorColumn = 0;
if (m_cursorRow == (m_rows - 1)) {