summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorTibor Nagy <xnagytibor@gmail.com>2020-03-06 22:15:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-06 22:20:53 +0100
commit30152b6c88f8334d61a21c5dfdd02166dcb3e788 (patch)
treebc592a8b331ebe8824afe971ac7d9bdc3fc530a3 /Kernel/Devices
parent72ef3e529acc8a634cbaab3dad22c6befcc58731 (diff)
downloadserenity-30152b6c88f8334d61a21c5dfdd02166dcb3e788.zip
Kernel: Fix syntax errors in PS2MOUSE_DEBUG
Found with Cppcheck.
Diffstat (limited to 'Kernel/Devices')
-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 946e62f172..a6a0252e0f 100644
--- a/Kernel/Devices/PS2MouseDevice.cpp
+++ b/Kernel/Devices/PS2MouseDevice.cpp
@@ -110,7 +110,7 @@ void PS2MouseDevice::handle_vmmouse_absolute_pointer()
#ifdef PS2MOUSE_DEBUG
dbg() << "Absolute Mouse: Buttons " << String::format("%x", buttons);
- dbg() << "Mouse: X " << x << ", Y " << y << ", Z " << z);
+ dbg() << "Mouse: X " << x << ", Y " << y << ", Z " << z;
#endif
MousePacket packet;
packet.x = x;
@@ -154,7 +154,7 @@ void PS2MouseDevice::handle_irq(RegisterState&)
auto commit_packet = [&] {
m_data_state = 0;
#ifdef PS2MOUSE_DEBUG
- dbg() << ("PS2Mouse: " << m_data[1] << ", " << m_data[2] << " " << ((m_data[0] & 1) ? "Left" : "") << " " << ((m_data[0] & 2) ? "Right" : "") << " (buffered: " << m_queue.size() << ")";
+ dbg() << "PS2Mouse: " << m_data[1] << ", " << m_data[2] << " " << ((m_data[0] & 1) ? "Left" : "") << " " << ((m_data[0] & 2) ? "Right" : "") << " (buffered: " << m_queue.size() << ")";
#endif
parse_data_packet();
};