mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
PS2MouseDevice: Add current buffer size to debug logging.
This commit is contained in:
parent
5cd588a497
commit
431e7bf085
Notes:
sideshowbarker
2024-07-19 15:46:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/431e7bf0852
1 changed files with 3 additions and 2 deletions
|
@ -54,11 +54,12 @@ void PS2MouseDevice::handle_irq()
|
|||
case 2:
|
||||
m_data_state = 0;
|
||||
#ifdef PS2MOUSE_DEBUG
|
||||
dbgprintf("PS2Mouse: %d, %d %s %s\n",
|
||||
dbgprintf("PS2Mouse: %d, %d %s %s (buffered: %u)\n",
|
||||
m_data[1],
|
||||
m_data[2],
|
||||
(m_data[0] & 1) ? "Left" : "",
|
||||
(m_data[0] & 2) ? "Right" : ""
|
||||
(m_data[0] & 2) ? "Right" : "",
|
||||
m_queue.size()
|
||||
);
|
||||
#endif
|
||||
m_queue.enqueue(m_data[0]);
|
||||
|
|
Loading…
Reference in a new issue