Browse Source

Kernel: Silence some debug spam in Scheduler

Andreas Kling 5 năm trước cách đây
mục cha
commit
8a1dbe5483
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Kernel/Scheduler.cpp

+ 2 - 0
Kernel/Scheduler.cpp

@@ -388,7 +388,9 @@ bool Scheduler::pick_next()
         if (thread.dispatch_one_pending_signal() == ShouldUnblockThread::No)
             return IterationDecision::Continue;
         if (was_blocked) {
+#ifdef SCHEDULER_DEBUG
             dbg() << "Unblock " << thread << " due to signal";
+#endif
             ASSERT(thread.m_blocker != nullptr);
             thread.m_blocker->set_interrupted_by_signal();
             thread.unblock();