diff options
author | 2022-03-29 06:04:26 +0000 | |
---|---|---|
committer | 2022-03-30 21:57:31 +0000 | |
commit | 0a692353c53a85db30ed0cdde05ba139fced8b71 (patch) | |
tree | 52902e558014ebc3fb95521335a50e14fd85a5e0 /libs/binder/RpcState.cpp | |
parent | e33238ec4dbf2ccc05dd6889ce959b90f9a0418f (diff) |
libbinder: Print the iov number in RPC log messages
Bug: 224644083
Test: m
Change-Id: Id6f981911491d543561b0306b25dd4ef44fa8e5e
Diffstat (limited to 'libs/binder/RpcState.cpp')
-rw-r--r-- | libs/binder/RpcState.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp index 173e30a2e7..6d89064a5d 100644 --- a/libs/binder/RpcState.cpp +++ b/libs/binder/RpcState.cpp @@ -313,7 +313,8 @@ status_t RpcState::rpcSend(const sp<RpcSession::RpcConnection>& connection, const sp<RpcSession>& session, const char* what, iovec* iovs, int niovs, const std::function<status_t()>& altPoll) { for (int i = 0; i < niovs; i++) { - LOG_RPC_DETAIL("Sending %s on RpcTransport %p: %s", what, connection->rpcTransport.get(), + LOG_RPC_DETAIL("Sending %s (part %d of %d) on RpcTransport %p: %s", + what, i + 1, niovs, connection->rpcTransport.get(), android::base::HexString(iovs[i].iov_base, iovs[i].iov_len).c_str()); } @@ -343,7 +344,8 @@ status_t RpcState::rpcRec(const sp<RpcSession::RpcConnection>& connection, } for (int i = 0; i < niovs; i++) { - LOG_RPC_DETAIL("Received %s on RpcTransport %p: %s", what, connection->rpcTransport.get(), + LOG_RPC_DETAIL("Received %s (part %d of %d) on RpcTransport %p: %s", + what, i + 1, niovs, connection->rpcTransport.get(), android::base::HexString(iovs[i].iov_base, iovs[i].iov_len).c_str()); } return OK; |