diff options
author | 2024-10-22 00:01:25 +0000 | |
---|---|---|
committer | 2024-10-22 00:02:52 +0000 | |
commit | c4fe2466bea56ee8531c31f3b8b990713499ecd8 (patch) | |
tree | bd433ace0a8d4fd11454771226b6008a99a1aa79 /libs/binder/RpcSession.cpp | |
parent | 326593b0ca2e2e02e595774bf274e249e46a1587 (diff) |
libbinder: statusToString for status_t errors
'-status' for status=UNKNOWN_ERROR is UB, since that is
min integer. To avoid this, use the better function
which will also avoid this area. Only the cases that
matter are cleaned up.
Fixes: 354371732
Test: build
Change-Id: I0a71cd2c04680221191c7d926a64bda08012951f
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r-- | libs/binder/RpcSession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index cd21a91d2c..16023ffa82 100644 --- a/libs/binder/RpcSession.cpp +++ b/libs/binder/RpcSession.cpp @@ -164,7 +164,7 @@ status_t RpcSession::setupUnixDomainSocketBootstrapClient(unique_fd bootstrapFd) status_t status = mBootstrapTransport->interruptableWriteFully(mShutdownTrigger.get(), &iov, 1, std::nullopt, &fds); if (status != OK) { - ALOGE("Failed to send fd over bootstrap transport: %s", strerror(-status)); + ALOGE("Failed to send fd over bootstrap transport: %s", statusToString(status).c_str()); return status; } |