summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-10-22 04:16:07 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2024-10-22 04:16:07 +0000
commitb5963dc90bca2da04c357ea3ed0923e22ae6d544 (patch)
treeb8668604b8739309f38fe40335b40826b44ec434 /libs/binder/Parcel.cpp
parenteb6bc3d377ff6bde3af9368a0a6f9a20b6c88c08 (diff)
parentc16271ca4d678a90cef18af8129a6946903b2115 (diff)
Merge "libbinder: statusToString for status_t errors" into main am: 8a482fd1ad am: c16271ca4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3316036 Change-Id: I2281aebd6b6a09939941bd60c47cfd28ad0b8b42 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r--libs/binder/Parcel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 18c41341a3..96d821e196 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -668,7 +668,8 @@ status_t Parcel::appendFrom(const Parcel* parcel, size_t offset, size_t len) {
// FD was unowned in the source parcel.
int newFd = -1;
if (status_t status = binder::os::dupFileDescriptor(oldFd, &newFd); status != OK) {
- ALOGW("Failed to duplicate file descriptor %d: %s", oldFd, strerror(-status));
+ ALOGW("Failed to duplicate file descriptor %d: %s", oldFd,
+ statusToString(status).c_str());
}
rpcFields->mFds->emplace_back(unique_fd(newFd));
// Fixup the index in the data.