Kernel: Convert klog() => dmesgln() in VMWareBackdoor

This commit is contained in:
Andreas Kling 2021-03-09 20:32:32 +01:00
parent 5fd3006db2
commit a906670d1c
Notes: sideshowbarker 2024-07-18 21:33:55 +09:00

View File

@ -145,7 +145,7 @@ void VMWareBackdoor::enable_absolute_vmmouse()
InterruptDisabler disabler; InterruptDisabler disabler;
if (!detect_vmmouse()) if (!detect_vmmouse())
return; return;
klog() << "VMWareBackdoor: Enabling absolute mouse mode"; dmesgln("VMWareBackdoor: Enabling absolute mouse mode");
VMWareCommand command; VMWareCommand command;
@ -153,7 +153,7 @@ void VMWareBackdoor::enable_absolute_vmmouse()
command.command = VMMOUSE_STATUS; command.command = VMMOUSE_STATUS;
send(command); send(command);
if (command.ax == 0xFFFF0000) { if (command.ax == 0xFFFF0000) {
klog() << "VMWareBackdoor: VMMOUSE_STATUS got bad status"; dmesgln("VMWareBackdoor: VMMOUSE_STATUS got bad status");
return; return;
} }
@ -213,9 +213,7 @@ Optional<MousePacket> VMWareBackdoor::receive_mouse_packet()
command.command = VMMOUSE_STATUS; command.command = VMMOUSE_STATUS;
send(command); send(command);
if (command.ax == 0xFFFF0000) { if (command.ax == 0xFFFF0000) {
#if PS2MOUSE_DEBUG dbgln_if(PS2MOUSE_DEBUG, "PS2MouseDevice: Resetting VMWare mouse");
klog() << "PS2MouseDevice: Resetting VMWare mouse";
#endif
disable_absolute_vmmouse(); disable_absolute_vmmouse();
enable_absolute_vmmouse(); enable_absolute_vmmouse();
return {}; return {};