From 3ed48e6008751d5be0bab42de13359f30b02450e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maja=20K=C4=85dzio=C5=82ka?= Date: Thu, 30 Nov 2023 20:10:17 +0100 Subject: [PATCH] Kernel/HID: Don't refer to a USB mouse as PS2 Following 77441079dd2, the code in Kernel/Devices/HID/MouseDevice.cpp is used by both USB and PS2 rodents. Make sure not to emit misleading debug messages that could suggest that a USB mouse is a PS/2 one. --- Kernel/Devices/HID/MouseDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Devices/HID/MouseDevice.cpp b/Kernel/Devices/HID/MouseDevice.cpp index fc15b35f44..a8a4640ce2 100644 --- a/Kernel/Devices/HID/MouseDevice.cpp +++ b/Kernel/Devices/HID/MouseDevice.cpp @@ -48,8 +48,8 @@ ErrorOr MouseDevice::read(OpenFileDescription&, u64, UserOrKernelBuffer& auto packet = m_queue.dequeue(); dbgln_if(MOUSE_DEBUG, "Mouse Read: Buttons {:x}", packet.buttons); - dbgln_if(MOUSE_DEBUG, "PS2 Mouse: X {}, Y {}, Z {}, W {}, Relative {}", packet.x, packet.y, packet.z, packet.w, packet.buttons); - dbgln_if(MOUSE_DEBUG, "PS2 Mouse Read: Filter packets"); + dbgln_if(MOUSE_DEBUG, "Mouse: X {}, Y {}, Z {}, W {}, Relative {}", packet.x, packet.y, packet.z, packet.w, packet.buttons); + dbgln_if(MOUSE_DEBUG, "Mouse Read: Filter packets"); size_t bytes_read_from_packet = min(remaining_space_in_buffer, sizeof(MousePacket)); TRY(buffer.write(&packet, nread, bytes_read_from_packet));