Kernel/HID: Don't refer to a USB mouse as PS2
Following 77441079dd
, 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.
This commit is contained in:
parent
173a085e48
commit
3ed48e6008
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/meithecatte 🔰 Commit: https://github.com/SerenityOS/serenity/commit/3ed48e6008 Pull-request: https://github.com/SerenityOS/serenity/pull/22103 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ ErrorOr<size_t> 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));
|
||||
|
|
Loading…
Add table
Reference in a new issue