Skip to content

Commit

Permalink
Kernel: Fix syntax errors in PS2MOUSE_DEBUG
Browse files Browse the repository at this point in the history
Found with Cppcheck.
  • Loading branch information
xTibor authored and awesomekling committed Mar 6, 2020
1 parent 72ef3e5 commit 30152b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kernel/Devices/PS2MouseDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
};
Expand Down

0 comments on commit 30152b6

Please sign in to comment.