Browse Source

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.
Maja Kądziołka 1 year ago
parent
commit
3ed48e6008
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Kernel/Devices/HID/MouseDevice.cpp

+ 2 - 2
Kernel/Devices/HID/MouseDevice.cpp

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