aboutsummaryrefslogtreecommitdiffstats
path: root/src/direct_bt/BTGattHandler.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-04-22 00:42:08 +0200
committerSven Gothel <[email protected]>2022-04-22 00:42:08 +0200
commitb3f6c8b33401fe06d446bf066be5ea4df278fe7b (patch)
treea9103d9bbcddca33509930c85e00c5c0f125c7c4 /src/direct_bt/BTGattHandler.cpp
parentf233dd90175762586fe4d38a1274ba21be36d716 (diff)
Unify BTGattHandler, HCIHandler and BTManager's reader error determination and output: Use 'Error' only on well defined error
Diffstat (limited to 'src/direct_bt/BTGattHandler.cpp')
-rw-r--r--src/direct_bt/BTGattHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/direct_bt/BTGattHandler.cpp b/src/direct_bt/BTGattHandler.cpp
index 8fc0259a..8234ef9e 100644
--- a/src/direct_bt/BTGattHandler.cpp
+++ b/src/direct_bt/BTGattHandler.cpp
@@ -508,13 +508,13 @@ void BTGattHandler::l2capReaderWork(jau::service_runner& sr) noexcept {
ERR_PRINT("Unhandled: %s", attPDU->toString().c_str());
}
} else if( 0 > len && ETIMEDOUT != errno && !l2cap.interrupted() ) { // expected exits
- IRQ_PRINT("GATTHandler::reader: l2cap read error -> Stop; l2cap.read %d (%s); %s",
+ IRQ_PRINT("GATTHandler::reader: l2cap read: Error res %d (%s); %s",
len, L2CAPClient::getRWExitCodeString(len).c_str(),
getStateString().c_str());
sr.set_shall_stop();
has_ioerror = true;
} else if( len != L2CAPClient::number(L2CAPClient::RWExitCode::POLL_TIMEOUT) ) { // expected POLL_TIMEOUT if idle
- WORDY_PRINT("GATTHandler::reader: l2cap read: l2cap.read %d (%s); %s",
+ WORDY_PRINT("GATTHandler::reader: l2cap read: IRQed res %d (%s); %s",
len, L2CAPClient::getRWExitCodeString(len).c_str(),
getStateString().c_str());
}