diff options
author | Sven Gothel <[email protected]> | 2020-08-26 06:51:29 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-08-26 06:51:29 +0200 |
commit | c72fc96761b64da0399070a82fd65d26ef6139cb (patch) | |
tree | 438fa785ae66c6328ea683da43ec949aaeb558b1 /src | |
parent | f75f6ba92bed201b80e578d3dd5e6c27a75c5710 (diff) |
GATTHandler::reader: Use ERR_PRINT(..) on l2cap read error, capturing the errno. Align error message w/ DBTManager and HCIHandler
Diffstat (limited to 'src')
-rw-r--r-- | src/direct_bt/DBTManager.cpp | 2 | ||||
-rw-r--r-- | src/direct_bt/GATTHandler.cpp | 2 | ||||
-rw-r--r-- | src/direct_bt/HCIHandler.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/direct_bt/DBTManager.cpp b/src/direct_bt/DBTManager.cpp index 7473ebf4..2f0ae32f 100644 --- a/src/direct_bt/DBTManager.cpp +++ b/src/direct_bt/DBTManager.cpp @@ -95,7 +95,7 @@ void DBTManager::mgmtReaderThreadImpl() { sendMgmtEvent(event); } } else if( ETIMEDOUT != errno && !mgmtReaderShallStop ) { // expected exits - ERR_PRINT("DBTManager::reader: HCIComm error"); + ERR_PRINT("DBTManager::reader: HCIComm read error -> Stop"); } } diff --git a/src/direct_bt/GATTHandler.cpp b/src/direct_bt/GATTHandler.cpp index e660bd8e..d8efdf3b 100644 --- a/src/direct_bt/GATTHandler.cpp +++ b/src/direct_bt/GATTHandler.cpp @@ -244,7 +244,7 @@ void GATTHandler::l2capReaderThreadImpl() { delete attPDU; // free unhandled PDU } } else if( ETIMEDOUT != errno && !l2capReaderShallStop ) { // expected exits - WARN_PRINT("GATTHandler::l2capReaderThread: l2cap read error -> Stop"); + ERR_PRINT("GATTHandler::l2capReaderThread: l2cap read error -> Stop"); l2capReaderShallStop = true; ioErrorCause = true; } diff --git a/src/direct_bt/HCIHandler.cpp b/src/direct_bt/HCIHandler.cpp index 442c0ee6..fdc9259c 100644 --- a/src/direct_bt/HCIHandler.cpp +++ b/src/direct_bt/HCIHandler.cpp @@ -298,7 +298,7 @@ void HCIHandler::hciReaderThreadImpl() { } } } else if( ETIMEDOUT != errno && !hciReaderShallStop ) { // expected exits - ERR_PRINT("HCIHandler::reader: HCIComm error"); + ERR_PRINT("HCIHandler::reader: HCIComm read error -> Stop"); } } INFO_PRINT("HCIHandler::reader: Ended. Ring has %d entries flushed", hciEventRing.getSize()); |