summaryrefslogtreecommitdiff
path: root/Kernel/TTY
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-10 16:21:56 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-11 11:55:47 +0100
commit723effd05152d2f9f2f8488b834a2ed2d88a4106 (patch)
tree4af99b7bea34166a58dcabd03323633aa8eee3f4 /Kernel/TTY
parent5931758dbc4561c6d14bc7dba25cffabb5e3ca9f (diff)
downloadserenity-723effd05152d2f9f2f8488b834a2ed2d88a4106.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.Everything:
Diffstat (limited to 'Kernel/TTY')
-rw-r--r--Kernel/TTY/TTY.cpp12
-rw-r--r--Kernel/TTY/VirtualConsole.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/Kernel/TTY/TTY.cpp b/Kernel/TTY/TTY.cpp
index 375939390b..b795966e6d 100644
--- a/Kernel/TTY/TTY.cpp
+++ b/Kernel/TTY/TTY.cpp
@@ -154,22 +154,22 @@ void TTY::emit(u8 ch, bool do_evaluate_block_conditions)
{
if (should_generate_signals()) {
if (ch == m_termios.c_cc[VINFO]) {
- dbg() << tty_name() << ": VINFO pressed!";
+ dbgln("{}: VINFO pressed!", tty_name());
generate_signal(SIGINFO);
return;
}
if (ch == m_termios.c_cc[VINTR]) {
- dbg() << tty_name() << ": VINTR pressed!";
+ dbgln("{}: VINTR pressed!", tty_name());
generate_signal(SIGINT);
return;
}
if (ch == m_termios.c_cc[VQUIT]) {
- dbg() << tty_name() << ": VQUIT pressed!";
+ dbgln("{}: VQUIT pressed!", tty_name());
generate_signal(SIGQUIT);
return;
}
if (ch == m_termios.c_cc[VSUSP]) {
- dbg() << tty_name() << ": VSUSP pressed!";
+ dbgln("{}: VSUSP pressed!", tty_name());
generate_signal(SIGTSTP);
if (auto original_process_parent = m_original_process_parent.strong_ref()) {
[[maybe_unused]] auto rc = original_process_parent->send_signal(SIGCHLD, nullptr);
@@ -284,10 +284,10 @@ void TTY::generate_signal(int signal)
return;
if (should_flush_on_signal())
flush_input();
- dbg() << tty_name() << ": Send signal " << signal << " to everyone in pgrp " << pgid().value();
+ dbgln("{}: Send signal {} to everyone in pgrp {}", tty_name(), signal, pgid().value());
InterruptDisabler disabler; // FIXME: Iterate over a set of process handles instead?
Process::for_each_in_pgrp(pgid(), [&](auto& process) {
- dbg() << tty_name() << ": Send signal " << signal << " to " << process;
+ dbgln("{}: Send signal {} to {}", tty_name(), signal, process);
// FIXME: Should this error be propagated somehow?
[[maybe_unused]] auto rc = process.send_signal(signal, nullptr);
return IterationDecision::Continue;
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index 13a43ac49f..961ee9f8c2 100644
--- a/Kernel/TTY/VirtualConsole.cpp
+++ b/Kernel/TTY/VirtualConsole.cpp
@@ -100,7 +100,7 @@ void VirtualConsole::switch_to(unsigned index)
}
active_console->set_active(false);
}
- dbg() << "VC: Switch to " << index << " (" << s_consoles[index] << ")";
+ dbgln("VC: Switch to {} ({})", index, s_consoles[index]);
s_active_console = index;
s_consoles[s_active_console]->set_active(true);
}