From b445b979d3062652807c4dbf7952c434404f0a5c Mon Sep 17 00:00:00 2001 From: pixl Date: Thu, 2 Jul 2020 15:42:36 -0400 Subject: [PATCH] Remove some useless debug output --- src/logid/Device.cpp | 3 +++ src/logid/Receiver.cpp | 1 - src/logid/backend/hidpp/Device.cpp | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/logid/Device.cpp b/src/logid/Device.cpp index d7b02f5..dfde69f 100644 --- a/src/logid/Device.cpp +++ b/src/logid/Device.cpp @@ -41,6 +41,9 @@ Device::Device(const std::shared_ptr& raw_device, void Device::_init() { + logPrintf(INFO, "Device found: %s on %s:%d", name().c_str(), + hidpp20().devicePath().c_str(), _index); + _addFeature(); _addFeature(); diff --git a/src/logid/Receiver.cpp b/src/logid/Receiver.cpp index 365cb20..1efa1ea 100644 --- a/src/logid/Receiver.cpp +++ b/src/logid/Receiver.cpp @@ -27,7 +27,6 @@ using namespace logid::backend; Receiver::Receiver(std::string path) : dj::ReceiverMonitor(path), _path (path) { - logPrintf(DEBUG, "logid::Receiver created on %s", path.c_str()); } void Receiver::addDevice(hidpp::DeviceConnectionEvent event) diff --git a/src/logid/backend/hidpp/Device.cpp b/src/logid/backend/hidpp/Device.cpp index 654630f..680ed3f 100644 --- a/src/logid/backend/hidpp/Device.cpp +++ b/src/logid/backend/hidpp/Device.cpp @@ -49,7 +49,6 @@ Device::InvalidDevice::Reason Device::InvalidDevice::code() const noexcept return _reason; } -/// TODO: Initialize a single RawDevice for each path. Device::Device(const std::string& path, DeviceIndex index): _raw_device (std::make_shared(path)), _receiver (nullptr), _path (path), _index (index)