summaryrefslogtreecommitdiff
path: root/Kernel/Devices/PS2MouseDevice.cpp
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-10 14:39:20 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-11 11:55:47 +0100
commit872f2a3b90852c5211e68e7c73f871585576a3f8 (patch)
tree826c99d7635df1058dce1c46cfcf4854ffddb6cb /Kernel/Devices/PS2MouseDevice.cpp
parent11d651d4478dedb1c565b1e9a613c70df431ba44 (diff)
downloadserenity-872f2a3b90852c5211e68e7c73f871585576a3f8.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/Devices/PS2MouseDevice.cpp')
-rw-r--r--Kernel/Devices/PS2MouseDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/PS2MouseDevice.cpp b/Kernel/Devices/PS2MouseDevice.cpp
index 8b2d0d7fd7..159cb9b35b 100644
--- a/Kernel/Devices/PS2MouseDevice.cpp
+++ b/Kernel/Devices/PS2MouseDevice.cpp
@@ -203,7 +203,7 @@ u8 PS2MouseDevice::send_command(u8 command)
{
u8 response = m_controller.send_command(I8042Controller::Device::Mouse, command);
if (response != I8042_ACK)
- dbg() << "PS2MouseDevice: Command " << (int)command << " got " << (int)response << " but expected ack: " << (int)I8042_ACK;
+ dbgln("PS2MouseDevice: Command {} got {} but expected ack: {}", command, response, I8042_ACK);
return response;
}
@@ -211,7 +211,7 @@ u8 PS2MouseDevice::send_command(u8 command, u8 data)
{
u8 response = m_controller.send_command(I8042Controller::Device::Mouse, command, data);
if (response != I8042_ACK)
- dbg() << "PS2MouseDevice: Command " << (int)command << " got " << (int)response << " but expected ack: " << (int)I8042_ACK;
+ dbgln("PS2MouseDevice: Command {} got {} but expected ack: {}", command, response, I8042_ACK);
return response;
}