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

Commit f615cf31 authored by Steven Moreland's avatar Steven Moreland
Browse files

RpcState: dump full command when unrecognized

More data for more hints.

Bug: 414720799
Test: N/A
Change-Id: If8182019e183073bcfc3eb008a8f5501d54af02b
parent 81acc44a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -833,7 +833,9 @@ status_t RpcState::processCommand(
    // to understand where the current command ends and the next one begins. We
    // also can't consider it a fatal error because this would allow any client
    // to kill us, so ending the session for misbehaving client.
    ALOGE("Unknown RPC command %d - terminating session", command.command);
    ALOGE("Unknown RPC command %d - terminating session. Header: %s. CommandType: %d. numFds: %zu",
          command.command, HexString(&command, sizeof(command)).c_str(), static_cast<int>(type),
          ancillaryFds.size());
    (void)session->shutdownAndWait(false);
    return DEAD_OBJECT;
}