Adding logging notices to ResourceManager to track explicit hid_init() and hid_exit()
This commit is contained in:
parent
d926754745
commit
067aa4d88a
1 changed files with 14 additions and 0 deletions
|
|
@ -358,6 +358,13 @@ void ResourceManager::Cleanup()
|
|||
delete bus;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Cleanup HID interface |
|
||||
\*-------------------------------------------------*/
|
||||
int hid_status = hid_exit();
|
||||
|
||||
LOG_DEBUG("Closing HID interfaces: %s", ((hid_status == 0) ? "Success" : "Failed"));
|
||||
|
||||
if(DetectDevicesThread)
|
||||
{
|
||||
DetectDevicesThread->join();
|
||||
|
|
@ -448,6 +455,13 @@ void ResourceManager::DetectDevicesThreadFunction()
|
|||
\*-------------------------------------------------*/
|
||||
detector_settings = settings_manager->GetSettings("Detectors");
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Initialize HID interface for detection |
|
||||
\*-------------------------------------------------*/
|
||||
int hid_status = hid_init();
|
||||
|
||||
LOG_NOTICE("Initializing HID interfaces: %s", ((hid_status == 0) ? "Success" : "Failed"));
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Check HID safe mode setting |
|
||||
\*-------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue