summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-08-25 21:44:41 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-08-25 21:44:41 +0000
commit30d9ffa40c5df320d4acafd2d68a9b99e7d7207d (patch)
tree77327f231a7899759a534f6568ab0a78204c7c2e
parentbb3952d8f9a70021538b2e6860052f2766e4b8d2 (diff)
parent691126585a46b57044a72483c54e7bff291c6427 (diff)
Merge "Don't log when there are no more messages" into main
-rw-r--r--libs/input/InputTransport.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/input/InputTransport.cpp b/libs/input/InputTransport.cpp
index 843ef273f6..5fec1a95ca 100644
--- a/libs/input/InputTransport.cpp
+++ b/libs/input/InputTransport.cpp
@@ -783,8 +783,10 @@ android::base::Result<InputPublisher::ConsumerResponse> InputPublisher::receiveC
InputMessage msg;
status_t result = mChannel->receiveMessage(&msg);
if (result) {
- ALOGD_IF(debugTransportPublisher(), "channel '%s' publisher ~ %s: %s",
- mChannel->getName().c_str(), __func__, strerror(result));
+ if (debugTransportPublisher() && result != WOULD_BLOCK) {
+ LOG(INFO) << "channel '" << mChannel->getName() << "' publisher ~ " << __func__ << ": "
+ << strerror(result);
+ }
return android::base::Error(result);
}
if (msg.header.type == InputMessage::Type::FINISHED) {