From 209c588ed1175e66828e03bf22a762a0eefde567 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Fri, 1 Mar 2024 21:20:27 +0200 Subject: [PATCH] Kernel: Switch a couple of signal dispatch dbglns to dbgln_if These are pretty spammy when using strace. --- Kernel/Tasks/Thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Tasks/Thread.cpp b/Kernel/Tasks/Thread.cpp index d45eb190f0..4a008ff6e8 100644 --- a/Kernel/Tasks/Thread.cpp +++ b/Kernel/Tasks/Thread.cpp @@ -964,14 +964,14 @@ DispatchSignalResult Thread::dispatch_signal(u8 signal) } if (signal == SIGCONT) { - dbgln("signal: SIGCONT resuming {}", *this); + dbgln_if(SIGNAL_DEBUG, "signal: SIGCONT resuming {}", *this); } else { if (tracer) { // when a thread is traced, it should be stopped whenever it receives a signal // the tracer is notified of this by using waitpid() // only "pending signals" from the tracer are sent to the tracee if (!tracer->has_pending_signal(signal)) { - dbgln("signal: {} stopping {} for tracer", signal, *this); + dbgln_if(SIGNAL_DEBUG, "signal: {} stopping {} for tracer", signal, *this); set_state(Thread::State::Stopped, signal); return DispatchSignalResult::Yield; }