mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
PS2MouseDevice: Add current buffer size to debug logging.
This commit is contained in:
parent
5cd588a497
commit
431e7bf085
1 changed files with 3 additions and 2 deletions
|
@ -54,11 +54,12 @@ void PS2MouseDevice::handle_irq()
|
||||||
case 2:
|
case 2:
|
||||||
m_data_state = 0;
|
m_data_state = 0;
|
||||||
#ifdef PS2MOUSE_DEBUG
|
#ifdef PS2MOUSE_DEBUG
|
||||||
dbgprintf("PS2Mouse: %d, %d %s %s\n",
|
dbgprintf("PS2Mouse: %d, %d %s %s (buffered: %u)\n",
|
||||||
m_data[1],
|
m_data[1],
|
||||||
m_data[2],
|
m_data[2],
|
||||||
(m_data[0] & 1) ? "Left" : "",
|
(m_data[0] & 1) ? "Left" : "",
|
||||||
(m_data[0] & 2) ? "Right" : ""
|
(m_data[0] & 2) ? "Right" : "",
|
||||||
|
m_queue.size()
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
m_queue.enqueue(m_data[0]);
|
m_queue.enqueue(m_data[0]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue