summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-08-25 01:19:27 +0200
committerSven Gothel <[email protected]>2020-08-25 01:19:27 +0200
commit6761482df10ba56c71263dc1c0e3a2e84d0dbf00 (patch)
tree5813415edc96809c50553e57e56ef03623a0e177 /src
parent6b973813937eb5f9a030ea5477aaa74e803932b4 (diff)
DBTManager/HCIHandler: Refine debug_event output
Diffstat (limited to 'src')
-rw-r--r--src/direct_bt/DBTManager.cpp4
-rw-r--r--src/direct_bt/HCIHandler.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/direct_bt/DBTManager.cpp b/src/direct_bt/DBTManager.cpp
index e7e83022..7473ebf4 100644
--- a/src/direct_bt/DBTManager.cpp
+++ b/src/direct_bt/DBTManager.cpp
@@ -175,11 +175,11 @@ std::shared_ptr<MgmtEvent> DBTManager::sendWithReply(MgmtCommand &req) {
} else if( !res->validate(req) ) {
// This could occur due to an earlier timeout w/ a nullptr == res (see above),
// i.e. the pending reply processed here and naturally not-matching.
- DBG_PRINT("DBTManager::sendWithReply: res mismatch (drop evt, continue retry %d): res %s; req %s",
+ COND_PRINT(debug_event, "DBTManager-IO RECV sendWithReply: res mismatch (drop evt, continue retry %d): res %s; req %s",
retry, res->toString().c_str(), req.toString().c_str());
retry--;
} else {
- COND_PRINT(debug_event, "DBTManager::sendWithReply: res %s; req %s", res->toString().c_str(), req.toString().c_str());
+ COND_PRINT(debug_event, "DBTManager-IO RECV sendWithReply: res %s; req %s", res->toString().c_str(), req.toString().c_str());
return res;
}
}
diff --git a/src/direct_bt/HCIHandler.cpp b/src/direct_bt/HCIHandler.cpp
index 6ffc3488..442c0ee6 100644
--- a/src/direct_bt/HCIHandler.cpp
+++ b/src/direct_bt/HCIHandler.cpp
@@ -352,9 +352,10 @@ std::shared_ptr<HCIEvent> HCIHandler::getNextReply(HCICommand &req, int & retryC
// This could occur due to an earlier timeout w/ a nullptr == res (see above),
// i.e. the pending reply processed here and naturally not-matching.
retryCount++;
- DBG_PRINT("HCIHandler::getNextReply: res mismatch (drop, retry %d): res %s; req %s",
+ COND_PRINT(debug_event, "HCIHandler-IO RECV getNextReply: res mismatch (drop, retry %d): res %s; req %s",
retryCount, ev->toString().c_str(), req.toString().c_str());
} else {
+ COND_PRINT(debug_event, "HCIHandler-IO RECV getNextReply: res %s; req %s", ev->toString().c_str(), req.toString().c_str());
return ev;
}
}