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

Commit 4e110b25 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:...

Merge "[binder]: Correct the index for getReturnString" am: a3408388 am: 3a3ed21b am: 218d4e6c
am: 22e91a5b

Change-Id: Ief9ebb3d80d134d964a3011141da0196c16f87fd
parents 5ae30bd3 22e91a5b
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