diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-12 03:20:48 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-12 03:20:48 +0100 |
commit | 0e6c19ffa6901fd570cdfb5302f6e28f3c1366d3 (patch) | |
tree | d9ef81dac8db8e15a05358f39d1682f153c196c7 /Kernel/PS2MouseDevice.cpp | |
parent | 5db720dc597f172872b128f74fa70eea544ce3d1 (diff) | |
download | serenity-0e6c19ffa6901fd570cdfb5302f6e28f3c1366d3.zip |
Reduce PS2MouseDevice debug spam in every dang mouse interrupt.
Diffstat (limited to 'Kernel/PS2MouseDevice.cpp')
-rw-r--r-- | Kernel/PS2MouseDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/PS2MouseDevice.cpp b/Kernel/PS2MouseDevice.cpp index 6ae04de6bc..d06974ad5f 100644 --- a/Kernel/PS2MouseDevice.cpp +++ b/Kernel/PS2MouseDevice.cpp @@ -1,6 +1,8 @@ #include "PS2MouseDevice.h" #include "IO.h" +//#define PS2MOUSE_DEBUG + static PS2MouseDevice* s_the; PS2MouseDevice::PS2MouseDevice() @@ -34,12 +36,14 @@ void PS2MouseDevice::handle_irq() break; case 2: m_data_state = 0; +#ifdef PS2MOUSE_DEBUG dbgprintf("PS2Mouse: %d, %d %s %s\n", m_data[1], m_data[2], (m_data[0] & 1) ? "Left" : "", (m_data[0] & 2) ? "Right" : "" ); +#endif if (m_client) m_client->did_receive_mouse_data(m_data[1], -m_data[2], m_data[0] & 1, m_data[0] & 2); break; |