mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Fix syntax errors in PS2MOUSE_DEBUG
Found with Cppcheck.
This commit is contained in:
parent
72ef3e529a
commit
30152b6c88
Notes:
sideshowbarker
2024-07-19 08:51:47 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/30152b6c88f Pull-request: https://github.com/SerenityOS/serenity/pull/1367
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue