Browse Source

Kernel: Silence TTY signal debug spam

Andreas Kling 4 năm trước cách đây
mục cha
commit
3b3e7d3f46
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Kernel/TTY/TTY.cpp

+ 2 - 2
Kernel/TTY/TTY.cpp

@@ -283,10 +283,10 @@ void TTY::generate_signal(int signal)
         return;
         return;
     if (should_flush_on_signal())
     if (should_flush_on_signal())
         flush_input();
         flush_input();
-    dbgln("{}: Send signal {} to everyone in pgrp {}", tty_name(), signal, pgid().value());
+    dbgln_if(TTY_DEBUG, "{}: Send signal {} to everyone in pgrp {}", tty_name(), signal, pgid().value());
     InterruptDisabler disabler; // FIXME: Iterate over a set of process handles instead?
     InterruptDisabler disabler; // FIXME: Iterate over a set of process handles instead?
     Process::for_each_in_pgrp(pgid(), [&](auto& process) {
     Process::for_each_in_pgrp(pgid(), [&](auto& process) {
-        dbgln("{}: Send signal {} to {}", tty_name(), signal, process);
+        dbgln_if(TTY_DEBUG, "{}: Send signal {} to {}", tty_name(), signal, process);
         // FIXME: Should this error be propagated somehow?
         // FIXME: Should this error be propagated somehow?
         [[maybe_unused]] auto rc = process.send_signal(signal, nullptr);
         [[maybe_unused]] auto rc = process.send_signal(signal, nullptr);
         return IterationDecision::Continue;
         return IterationDecision::Continue;