aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Wasilczyk <twasilczyk@google.com>2024-01-10 04:29:30 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-01-10 04:29:30 +0000
commit35898ac1e9f15d04f70d470077b990da1908ac67 (patch)
treeda524061ea3f34805e16e8609ef693a1d55d096d
parentedfc8a1a9aff0370b53526d44b9008650e6fb682 (diff)
parent5463d853378013b9c00cf544dae8c9ce3a927475 (diff)
downloadchre-35898ac1e9f15d04f70d470077b990da1908ac67.tar.gz
Don't print char16_t to a stream am: 5463d85337
Original change: https://android-review.googlesource.com/c/platform/system/chre/+/2903192 Change-Id: I7e65e21c9dbe4de9edde69b38755dcd753496cd5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--host/common/chre_aidl_hal_client.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/common/chre_aidl_hal_client.cc b/host/common/chre_aidl_hal_client.cc
index b6086577..eb2f425e 100644
--- a/host/common/chre_aidl_hal_client.cc
+++ b/host/common/chre_aidl_hal_client.cc
@@ -186,8 +186,8 @@ class ContextHubCallback : public BnContextHubCallback {
std::cout << "Received a message with type " << message.messageType
<< " size " << message.messageBody.size() << " from nanoapp 0x"
<< std::hex << message.nanoappId
- << " sent to the host endpoint 0x" << message.hostEndPoint
- << std::endl;
+ << " sent to the host endpoint 0x"
+ << static_cast<int>(message.hostEndPoint) << std::endl;
std::cout << "message: 0x";
for (const uint8_t &data : message.messageBody) {
std::cout << std::hex << static_cast<uint32_t>(data);