summaryrefslogtreecommitdiff
path: root/Kernel/Thread.cpp
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-18 17:25:44 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-22 22:14:30 +0100
commitea7b7d8ceb2f48127b196a4eaf958bb387bb61da (patch)
tree81ef2a3848a8b64ed0960f0c9055c216390b8baf /Kernel/Thread.cpp
parentfb8d3635d912a40a66a9e4b50454cfdd83f71d16 (diff)
downloadserenity-ea7b7d8ceb2f48127b196a4eaf958bb387bb61da.zip
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
Diffstat (limited to 'Kernel/Thread.cpp')
-rw-r--r--Kernel/Thread.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp
index 5e7a89eda5..8a4bef44fb 100644
--- a/Kernel/Thread.cpp
+++ b/Kernel/Thread.cpp
@@ -43,9 +43,6 @@
#include <Kernel/VM/ProcessPagingScope.h>
#include <LibC/signal_numbers.h>
-//#define SIGNAL_DEBUG
-//#define THREAD_DEBUG
-
namespace Kernel {
Thread::Thread(NonnullRefPtr<Process> process)
@@ -363,10 +360,10 @@ void Thread::finalize()
#ifdef LOCK_DEBUG
ASSERT(!m_lock.own_lock());
if (lock_count() > 0) {
- dbg() << "Thread " << *this << " leaking " << lock_count() << " Locks!";
+ dbgln("Thread {} leaking {} Locks!", *this, lock_count());
ScopedSpinLock list_lock(m_holding_locks_lock);
for (auto& info : m_holding_locks_list)
- dbg() << " - " << info.lock->name() << " @ " << info.lock << " locked at " << info.file << ":" << info.line << " count: " << info.count;
+ dbgln(" - {} @ {} locked at {}:{} count: {}", info.lock->name(), info.lock, info.file, info.line, info.count);
ASSERT_NOT_REACHED();
}
#endif