diff options
Diffstat (limited to 'src/direct_bt/GATTHandler.cpp')
-rw-r--r-- | src/direct_bt/GATTHandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/direct_bt/GATTHandler.cpp b/src/direct_bt/GATTHandler.cpp index f44feedf..2f393c82 100644 --- a/src/direct_bt/GATTHandler.cpp +++ b/src/direct_bt/GATTHandler.cpp @@ -263,12 +263,12 @@ bool GATTHandler::connect() { if( !isConnected.compare_exchange_strong(expConn, true) ) { // already connected INFO_PRINT("GATTHandler::connect: Already connected: GattHandler[%s], l2cap[%s]: %s", - getStateString().c_str(), l2cap.getStateString().c_str(), device->toString().c_str()); + getStateString().c_str(), l2cap.getStateString().c_str(), deviceString.c_str()); return true; } hasIOError = false; INFO_PRINT("GATTHandler::connect: Start: GattHandler[%s], l2cap[%s]: %s", - getStateString().c_str(), l2cap.getStateString().c_str(), device->toString().c_str()); + getStateString().c_str(), l2cap.getStateString().c_str(), deviceString.c_str()); if( !l2cap.connect() || !validateConnected() ) { DBG_PRINT("GATTHandler.connect: Could not connect"); @@ -309,13 +309,13 @@ bool GATTHandler::disconnect(const bool disconnectDevice, const bool ioErrorCaus if( !isConnected.compare_exchange_strong(expConn, false) ) { // not connected INFO_PRINT("GATTHandler::disconnect: Not connected: disconnectDevice %d, ioErrorCause %d: GattHandler[%s], l2cap[%s]: %s", - disconnectDevice, ioErrorCause, getStateString().c_str(), l2cap.getStateString().c_str(), device->toString().c_str()); + disconnectDevice, ioErrorCause, getStateString().c_str(), l2cap.getStateString().c_str(), deviceString.c_str()); l2cap.disconnect(); // interrupt GATT's L2CAP ::connect(..), avoiding prolonged hang return false; } hasIOError = false; INFO_PRINT("GATTHandler::disconnect: Start: disconnectDevice %d, ioErrorCause %d: GattHandler[%s], l2cap[%s]: %s", - disconnectDevice, ioErrorCause, getStateString().c_str(), l2cap.getStateString().c_str(), device->toString().c_str()); + disconnectDevice, ioErrorCause, getStateString().c_str(), l2cap.getStateString().c_str(), deviceString.c_str()); l2cap.disconnect(); // interrupt GATT's L2CAP ::connect(..), avoiding prolonged hang @@ -344,7 +344,7 @@ bool GATTHandler::disconnect(const bool disconnectDevice, const bool ioErrorCaus device->disconnect(false /* sentFromManager */, ioErrorCause, reason); } - INFO_PRINT("GATTHandler::disconnect: End"); + INFO_PRINT("GATTHandler::disconnect: End: %s", deviceString.c_str()); return true; } |