summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-25 10:30:30 +0100
committerSven Gothel <[email protected]>2020-10-25 10:30:30 +0100
commit530db7b53364c7ba3460d2db8bde53bf2a20ef3f (patch)
tree06e55689956a27a46fc9caccc8ac97fe9b85d627 /src
parentbcff1398d72ef2a03fc08f3b4c47a5ae2eee656c (diff)
DBTAdapter/Manager: Use DBG_PRINT instead of PLAIN_PRINT
Diffstat (limited to 'src')
-rw-r--r--src/direct_bt/DBTAdapter.cpp4
-rw-r--r--src/direct_bt/DBTManager.cpp28
2 files changed, 16 insertions, 16 deletions
diff --git a/src/direct_bt/DBTAdapter.cpp b/src/direct_bt/DBTAdapter.cpp
index 23651219..683d30a0 100644
--- a/src/direct_bt/DBTAdapter.cpp
+++ b/src/direct_bt/DBTAdapter.cpp
@@ -1131,12 +1131,12 @@ bool DBTAdapter::mgmtEvDeviceFoundHCI(std::shared_ptr<MgmtEvent> e) noexcept {
}
bool DBTAdapter::mgmtEvAdapterAddedMgmt(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTAdapter:mgmt:AdapterAdded: %s on %s", e->toString().c_str(), toString(false).c_str());
+ DBG_PRINT("DBTAdapter:mgmt:AdapterAdded: %s on %s", e->toString().c_str(), toString(false).c_str());
return true;
}
bool DBTAdapter::mgmtEvAdapterRemovedMgmt(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTAdapter:mgmt:AdapterRemoved: %s on %s", e->toString().c_str(), toString(false).c_str());
+ DBG_PRINT("DBTAdapter:mgmt:AdapterRemoved: %s on %s", e->toString().c_str(), toString(false).c_str());
// Adapter has been powered off, close connections and cleanup off-thread.
std::thread bg(&DBTAdapter::close, this); // @suppress("Invalid arguments")
bg.detach();
diff --git a/src/direct_bt/DBTManager.cpp b/src/direct_bt/DBTManager.cpp
index 1ae28018..85a6e1ee 100644
--- a/src/direct_bt/DBTManager.cpp
+++ b/src/direct_bt/DBTManager.cpp
@@ -926,84 +926,84 @@ bool DBTManager::mgmtEvNewSettingsCB(std::shared_ptr<MgmtEvent> e) noexcept {
}
bool DBTManager::mgmtEvClassOfDeviceChangedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:ClassOfDeviceChanged: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:ClassOfDeviceChanged: %s", e->toString().c_str());
(void)e;
return true;
}
bool DBTManager::mgmtEvDeviceDiscoveringCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceDiscovering: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceDiscovering: %s", e->toString().c_str());
const MgmtEvtDiscovering &event = *static_cast<const MgmtEvtDiscovering *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvDeviceFoundCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceFound: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceFound: %s", e->toString().c_str());
const MgmtEvtDeviceFound &event = *static_cast<const MgmtEvtDeviceFound *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvDeviceDisconnectedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceDisconnected: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceDisconnected: %s", e->toString().c_str());
const MgmtEvtDeviceDisconnected &event = *static_cast<const MgmtEvtDeviceDisconnected *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvDeviceConnectedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceConnected: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceConnected: %s", e->toString().c_str());
const MgmtEvtDeviceConnected &event = *static_cast<const MgmtEvtDeviceConnected *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvConnectFailedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:ConnectFailed: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:ConnectFailed: %s", e->toString().c_str());
const MgmtEvtDeviceConnectFailed &event = *static_cast<const MgmtEvtDeviceConnectFailed *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvDeviceBlockedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceBlocked: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceBlocked: %s", e->toString().c_str());
const MgmtEvtDeviceBlocked &event = *static_cast<const MgmtEvtDeviceBlocked *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvDeviceUnblockedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceUnblocked: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceUnblocked: %s", e->toString().c_str());
const MgmtEvtDeviceUnblocked &event = *static_cast<const MgmtEvtDeviceUnblocked *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvDeviceUnpairedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceUnpaired: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceUnpaired: %s", e->toString().c_str());
const MgmtEvtDeviceUnpaired &event = *static_cast<const MgmtEvtDeviceUnpaired *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvNewConnectionParamCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:NewConnectionParam: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:NewConnectionParam: %s", e->toString().c_str());
const MgmtEvtNewConnectionParam &event = *static_cast<const MgmtEvtNewConnectionParam *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvDeviceWhitelistAddedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceWhitelistAdded: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceWhitelistAdded: %s", e->toString().c_str());
const MgmtEvtDeviceWhitelistAdded &event = *static_cast<const MgmtEvtDeviceWhitelistAdded *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvDeviceWhilelistRemovedCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:DeviceWhitelistRemoved: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:DeviceWhitelistRemoved: %s", e->toString().c_str());
const MgmtEvtDeviceWhitelistRemoved &event = *static_cast<const MgmtEvtDeviceWhitelistRemoved *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvPinCodeRequestCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:PinCodeRequest: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:PinCodeRequest: %s", e->toString().c_str());
const MgmtEvtPinCodeRequest &event = *static_cast<const MgmtEvtPinCodeRequest *>(e.get());
(void)event;
return true;
}
bool DBTManager::mgmtEvUserPasskeyRequestCB(std::shared_ptr<MgmtEvent> e) noexcept {
- jau::PLAIN_PRINT("DBTManager:mgmt:UserPasskeyRequest: %s", e->toString().c_str());
+ DBG_PRINT("DBTManager:mgmt:UserPasskeyRequest: %s", e->toString().c_str());
const MgmtEvtUserPasskeyRequest &event = *static_cast<const MgmtEvtUserPasskeyRequest *>(e.get());
(void)event;
return true;