diff --git a/libs/ui/Fence.cpp b/libs/ui/Fence.cpp index 932bcdd4e..cec587613 100644 --- a/libs/ui/Fence.cpp +++ b/libs/ui/Fence.cpp @@ -55,8 +55,10 @@ sp Fence::merge(const String8& name, const sp& f1, ATRACE_CALL(); int result = sync_merge(name.string(), f1->mFenceFd, f2->mFenceFd); if (result == -1) { - ALOGE("merge: sync_merge returned an error: %s (%d)", strerror(-errno), - errno); + status_t err = -errno; + ALOGE("merge: sync_merge(\"%s\", %d, %d) returned an error: %s (%d)", + name.string(), f1->mFenceFd, f2->mFenceFd, + strerror(-err), err); return NO_FENCE; } return sp(new Fence(result));