summaryrefslogtreecommitdiff
path: root/libs/binder/RpcState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-07-29 12:14:44 -0700
committer Steven Moreland <smoreland@google.com> 2021-08-03 17:41:40 -0700
commit6212901557bf8309c9b7168c2089e1834400fe41 (patch)
treee50951a611bd8cca47076c0354773a437dc8181b /libs/binder/RpcState.cpp
parenta588da3ea77900adff9992ff4a231b965e931fdb (diff)
libbinder: use libbase HexString
Bug: N/A Test: boot, binder_parcel_fuzzer, binderClearBuf test Merged-In: I5c7d40334057cf8f91b64e2fea7809933565820d Change-Id: I5c7d40334057cf8f91b64e2fea7809933565820d
Diffstat (limited to 'libs/binder/RpcState.cpp')
-rw-r--r--libs/binder/RpcState.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp
index f3406bb10b..36c03c5097 100644
--- a/libs/binder/RpcState.cpp
+++ b/libs/binder/RpcState.cpp
@@ -18,6 +18,7 @@
#include "RpcState.h"
+#include <android-base/hex.h>
#include <android-base/scopeguard.h>
#include <binder/BpBinder.h>
#include <binder/IPCThreadState.h>
@@ -273,7 +274,7 @@ status_t RpcState::rpcSend(const sp<RpcSession::RpcConnection>& connection,
const sp<RpcSession>& session, const char* what, const void* data,
size_t size) {
LOG_RPC_DETAIL("Sending %s on fd %d: %s", what, connection->fd.get(),
- hexString(data, size).c_str());
+ android::base::HexString(data, size).c_str());
if (size > std::numeric_limits<ssize_t>::max()) {
ALOGE("Cannot send %s at size %zu (too big)", what, size);
@@ -311,7 +312,7 @@ status_t RpcState::rpcRec(const sp<RpcSession::RpcConnection>& connection,
}
LOG_RPC_DETAIL("Received %s on fd %d: %s", what, connection->fd.get(),
- hexString(data, size).c_str());
+ android::base::HexString(data, size).c_str());
return OK;
}