From 431e7bf0852137a399476bd9e78fb8023c937ced Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 12 Feb 2019 09:22:55 +0100 Subject: [PATCH] PS2MouseDevice: Add current buffer size to debug logging. --- Kernel/PS2MouseDevice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Kernel/PS2MouseDevice.cpp b/Kernel/PS2MouseDevice.cpp index 3ea0c013476..dc70c5eb780 100644 --- a/Kernel/PS2MouseDevice.cpp +++ b/Kernel/PS2MouseDevice.cpp @@ -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]);