summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-26 05:37:43 +0200
committerSven Gothel <[email protected]>2020-07-26 05:37:43 +0200
commitea5c7b5a8a21810d83fef0f52181c58818f14101 (patch)
treec1ee08521377b3e011f5f742e6ea2e1437324aa6
parent083df38df99a0f771388867a8c03b856813ce854 (diff)
DBTDevice.cpp: Fix DBG_PRINT..
-rw-r--r--src/direct_bt/DBTDevice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/direct_bt/DBTDevice.cpp b/src/direct_bt/DBTDevice.cpp
index bdcb4fd3..15bd09ee 100644
--- a/src/direct_bt/DBTDevice.cpp
+++ b/src/direct_bt/DBTDevice.cpp
@@ -591,7 +591,7 @@ bool DBTDevice::removeCharacteristicListener(std::shared_ptr<GATTCharacteristicL
std::shared_ptr<GATTHandler> gatt = getGATTHandler();
if( nullptr == gatt ) {
// OK to have GATTHandler being shutdown @ disable
- DBG_PRINT("Device's GATTHandle not connected: %s, %s", toString().c_str(), device->toString().c_str());
+ DBG_PRINT("Device's GATTHandle not connected: %s, %s", toString().c_str(), toString().c_str());
return false;
}
return gatt->removeCharacteristicListener(l);
@@ -601,7 +601,7 @@ int DBTDevice::removeAllAssociatedCharacteristicListener(std::shared_ptr<GATTCha
std::shared_ptr<GATTHandler> gatt = getGATTHandler();
if( nullptr == gatt ) {
// OK to have GATTHandler being shutdown @ disable
- DBG_PRINT("Device's GATTHandle not connected: %s, %s", toString().c_str(), device->toString().c_str());
+ DBG_PRINT("Device's GATTHandle not connected: %s, %s", toString().c_str(), toString().c_str());
return false;
}
return gatt->removeAllAssociatedCharacteristicListener( associatedCharacteristic );
@@ -611,7 +611,7 @@ int DBTDevice::removeAllCharacteristicListener() {
std::shared_ptr<GATTHandler> gatt = getGATTHandler();
if( nullptr == gatt ) {
// OK to have GATTHandler being shutdown @ disable
- DBG_PRINT("Device's GATTHandle not connected: %s, %s", toString().c_str(), device->toString().c_str());
+ DBG_PRINT("Device's GATTHandle not connected: %s, %s", toString().c_str(), toString().c_str());
return 0;
}
return gatt->removeAllCharacteristicListener();