log more info on fence sync_merge error
also fix a typo where the wrong value was passed to sterror. Change-Id: I4df2abe582e14c8f816b65818f4593a6bd3c23ea
This commit is contained in:
parent
c666cae2d5
commit
d83d67b5d5
@ -55,8 +55,10 @@ sp<Fence> Fence::merge(const String8& name, const sp<Fence>& f1,
|
|||||||
ATRACE_CALL();
|
ATRACE_CALL();
|
||||||
int result = sync_merge(name.string(), f1->mFenceFd, f2->mFenceFd);
|
int result = sync_merge(name.string(), f1->mFenceFd, f2->mFenceFd);
|
||||||
if (result == -1) {
|
if (result == -1) {
|
||||||
ALOGE("merge: sync_merge returned an error: %s (%d)", strerror(-errno),
|
status_t err = -errno;
|
||||||
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 NO_FENCE;
|
||||||
}
|
}
|
||||||
return sp<Fence>(new Fence(result));
|
return sp<Fence>(new Fence(result));
|
||||||
|
Loading…
Reference in New Issue
Block a user