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

Commit 0b32b120 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "[binder]: Use _IOC_NRMASK instead of oxff to filter out the cmd."

parents 714761d2 8e486c69
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ static const char *kCommandStrings[] = {

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