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

Commit 68167b00 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Binder: extended error includes cmd name string." into main

parents b0825c22 6da2a955
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ static const char* getReturnString(uint32_t cmd)
    if (idx < sizeof(kReturnStrings) / sizeof(kReturnStrings[0]))
        return kReturnStrings[idx];
    else
        return "unknown";
        return "(BR_* unknown)";
}

static const void* printBinderTransactionData(std::ostream& out, const void* data) {
@@ -1723,8 +1723,9 @@ void IPCThreadState::logExtendedError() {
    }
#endif

    ALOGE_IF(ee.command != BR_OK, "Binder transaction failure. id: %d, BR_*: %d, error: %d (%s)",
             ee.id, ee.command, ee.param, strerror(-ee.param));
    ALOGE_IF(ee.command != BR_OK,
             "Binder transaction failure. id: %d, cmd: %s (%d), error: %d (%s)", ee.id,
             getReturnString(ee.command), ee.command, ee.param, strerror(-ee.param));
}

void IPCThreadState::freeBuffer(const uint8_t* data, size_t /*dataSize*/,