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

Commit 218d4e6c authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "[binder]: Correct the index for getReturnString" am: a3408388

am: 3a3ed21b

Change-Id: I155907b463d85dee5327c1b1df47be6d6c5cc3c9
parents 7a7c28a4 3a3ed21b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -107,8 +107,9 @@ static const char *kCommandStrings[] = {
    "BC_DEAD_BINDER_DONE"
};

static const char* getReturnString(size_t idx)
static const char* getReturnString(uint32_t cmd)
{
    size_t idx = cmd & 0xff;
    if (idx < sizeof(kReturnStrings) / sizeof(kReturnStrings[0]))
        return kReturnStrings[idx];
    else