diff options
author | Liav A <liavalb@gmail.com> | 2020-03-01 21:45:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-02 22:23:39 +0100 |
commit | 0fc60e41dd06f2c47f1ba416e6eb1c08ee9024c4 (patch) | |
tree | 438f00be5f3af7ac6aa19cea647505f6527c7e9b /Kernel/FileSystem/FIFO.cpp | |
parent | 19aa53e1f96745b1f3a90c94f8d24c92e68d4372 (diff) | |
download | serenity-0fc60e41dd06f2c47f1ba416e6eb1c08ee9024c4.zip |
Kernel: Use klog() instead of kprintf()
Also, duplicate data in dbg() and klog() calls were removed.
In addition, leakage of virtual address to kernel log is prevented.
This is done by replacing kprintf() calls to dbg() calls with the
leaked data instead.
Also, other kprintf() calls were replaced with klog().
Diffstat (limited to 'Kernel/FileSystem/FIFO.cpp')
-rw-r--r-- | Kernel/FileSystem/FIFO.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/FileSystem/FIFO.cpp b/Kernel/FileSystem/FIFO.cpp index af84301e0b..e1ae8d59b4 100644 --- a/Kernel/FileSystem/FIFO.cpp +++ b/Kernel/FileSystem/FIFO.cpp @@ -78,12 +78,12 @@ void FIFO::attach(Direction direction) if (direction == Direction::Reader) { ++m_readers; #ifdef FIFO_DEBUG - kprintf("open reader (%u)\n", m_readers); + klog() << "open reader (" << m_readers << ")"; #endif } else if (direction == Direction::Writer) { ++m_writers; #ifdef FIFO_DEBUG - kprintf("open writer (%u)\n", m_writers); + klog() << "open writer (" << m_writers << ")"; #endif } } @@ -92,13 +92,13 @@ void FIFO::detach(Direction direction) { if (direction == Direction::Reader) { #ifdef FIFO_DEBUG - kprintf("close reader (%u - 1)\n", m_readers); + klog() << "close reader (" << m_readers << " - 1)"; #endif ASSERT(m_readers); --m_readers; } else if (direction == Direction::Writer) { #ifdef FIFO_DEBUG - kprintf("close writer (%u - 1)\n", m_writers); + klog() << "close writer (" << m_writers << " - 1)"; #endif ASSERT(m_writers); --m_writers; |