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

Commit 0176bcb1 authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

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

am: 0b32b120

Change-Id: I2690b304d68659c5ccda129ba7247ad0597fcdf7
parents 03c10ffd 0b32b120
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