Skip to content

Commit

Permalink
Reduce log spam on release
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Jun 14, 2020
1 parent cd97176 commit 158ebf0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VoodooRMI/Functions/F30.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ int F30::rmi_f30_report_button(unsigned int button)
rmiBus->notify(kHandleRMIClickpadSet, key_down);
return 0;
} else {
IOLog("Key %u is %s", key_code, key_down ? "Down": "Up");
IOLogDebug("Key %u is %s", key_code, key_down ? "Down": "Up");
// Key code is one above the shift value as key code 0 is "Reserved" or "not present"
return ((int) key_down) << (key_code - 1);
}
Expand Down
4 changes: 3 additions & 1 deletion VoodooRMI/RMIBus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ IOReturn RMIBus::setPowerState(unsigned long whichState, IOService* whatDevice)
} else if (!awake) {
IOSleep(1000);
IOLogDebug("Wakeup");
transport->reset();
IOReturn ret = transport->reset();
if (ret < 0)
IOLogError("Could not get SMBus Version on wakeup\n");
// c++ lambdas are wack
// Sensor doesn't wake up if we don't scan property tables
rmi_scan_pdt(this, NULL, [](RMIBus *rmi_dev,
Expand Down
1 change: 0 additions & 1 deletion VoodooRMI/Transports/RMISMBus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ int RMISMBus::rmi_smb_get_version()
/* Check if for SMBus new version device by reading version byte. */
retval = device_nub->readByteData(SMB_PROTOCOL_VERSION_ADDRESS);
if (retval < 0) {
IOLog("Failed to get SMBus version number!\n");
return retval;
}

Expand Down

0 comments on commit 158ebf0

Please sign in to comment.