PS2MouseDevice: Add current buffer size to debug logging.

This commit is contained in:
Andreas Kling 2019-02-12 09:22:55 +01:00
parent 5cd588a497
commit 431e7bf085
Notes: sideshowbarker 2024-07-19 15:46:50 +09:00

View file

@ -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]);