Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ede80828 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: include flags in large transaction logs

Bug: 425952379
Test: N/A
Flag: EXEMPT .
Change-Id: I8fbb295488ae290178fe1c355551762e9202777d
parent 8443b19b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -411,8 +411,9 @@ status_t BBinder::transact(
    if (reply != nullptr) {
        reply->setDataPosition(0);
        if (reply->dataSize() > binder::kLogTransactionsOverBytes) {
            ALOGW("Large reply transaction of %zu bytes, interface descriptor %s, code %d",
                  reply->dataSize(), String8(getInterfaceDescriptor()).c_str(), code);
            ALOGW("Large reply transaction of %zu bytes, interface descriptor %s, code %d, flags "
                  "%d",
                  reply->dataSize(), String8(getInterfaceDescriptor()).c_str(), code, flags);
        }
    }

+3 −3
Original line number Diff line number Diff line
@@ -404,9 +404,9 @@ status_t BpBinder::transact(

        if (data.dataSize() > binder::kLogTransactionsOverBytes) {
            RpcMutexUniqueLock _l(mLock);
            ALOGW("Large outgoing transaction of %zu bytes, interface descriptor %s, code %d was "
                  "sent",
                  data.dataSize(), String8(mDescriptorCache).c_str(), code);
            ALOGW("Large outgoing transaction of %zu bytes, interface descriptor %s, code %d, "
                  "flags %d was sent",
                  data.dataSize(), String8(mDescriptorCache).c_str(), code, flags);
        }

        if (status == DEAD_OBJECT) mAlive = 0;