mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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:
|
||||
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…
Add table
Reference in a new issue