Remove logspam in /dev/{full,null,zero} now that they work just fine.
Also don't echo anything to console when putch'ing '\0'.
This commit is contained in:
parent
6312c3f253
commit
546ddd7de0
Notes:
sideshowbarker
2024-07-19 18:38:29 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/546ddd7de02
5 changed files with 2 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Binary file not shown.
|
@ -19,7 +19,6 @@ bool FullDevice::hasDataAvailableForRead() const
|
|||
|
||||
Unix::ssize_t FullDevice::read(byte* buffer, Unix::size_t bufferSize)
|
||||
{
|
||||
kprintf("FullDevice: read from full\n");
|
||||
Unix::size_t count = min(GoodBufferSize, bufferSize);
|
||||
memset(buffer, 0, count);
|
||||
return count;
|
||||
|
|
|
@ -18,7 +18,6 @@ bool NullDevice::hasDataAvailableForRead() const
|
|||
|
||||
Unix::ssize_t NullDevice::read(byte*, Unix::size_t)
|
||||
{
|
||||
kprintf("NullDevice: read from null\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ bool ZeroDevice::hasDataAvailableForRead() const
|
|||
|
||||
Unix::ssize_t ZeroDevice::read(byte* buffer, Unix::size_t bufferSize)
|
||||
{
|
||||
kprintf("ZeroDevice: read from zero\n");
|
||||
Unix::size_t count = min(GoodBufferSize, bufferSize);
|
||||
memset(buffer, 0, count);
|
||||
return count;
|
||||
|
|
Loading…
Add table
Reference in a new issue