mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
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
5 changed files with 2 additions and 3 deletions
|
@ -40,6 +40,8 @@ void Console::putChar(char ch)
|
||||||
IO::out8(0xe9, ch);
|
IO::out8(0xe9, ch);
|
||||||
#endif
|
#endif
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
case '\0':
|
||||||
|
return;
|
||||||
case '\n':
|
case '\n':
|
||||||
m_cursorColumn = 0;
|
m_cursorColumn = 0;
|
||||||
if (m_cursorRow == (m_rows - 1)) {
|
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)
|
Unix::ssize_t FullDevice::read(byte* buffer, Unix::size_t bufferSize)
|
||||||
{
|
{
|
||||||
kprintf("FullDevice: read from full\n");
|
|
||||||
Unix::size_t count = min(GoodBufferSize, bufferSize);
|
Unix::size_t count = min(GoodBufferSize, bufferSize);
|
||||||
memset(buffer, 0, count);
|
memset(buffer, 0, count);
|
||||||
return count;
|
return count;
|
||||||
|
|
|
@ -18,7 +18,6 @@ bool NullDevice::hasDataAvailableForRead() const
|
||||||
|
|
||||||
Unix::ssize_t NullDevice::read(byte*, Unix::size_t)
|
Unix::ssize_t NullDevice::read(byte*, Unix::size_t)
|
||||||
{
|
{
|
||||||
kprintf("NullDevice: read from null\n");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ bool ZeroDevice::hasDataAvailableForRead() const
|
||||||
|
|
||||||
Unix::ssize_t ZeroDevice::read(byte* buffer, Unix::size_t bufferSize)
|
Unix::ssize_t ZeroDevice::read(byte* buffer, Unix::size_t bufferSize)
|
||||||
{
|
{
|
||||||
kprintf("ZeroDevice: read from zero\n");
|
|
||||||
Unix::size_t count = min(GoodBufferSize, bufferSize);
|
Unix::size_t count = min(GoodBufferSize, bufferSize);
|
||||||
memset(buffer, 0, count);
|
memset(buffer, 0, count);
|
||||||
return count;
|
return count;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue