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

Commit 98e96d91 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "RpcState: dump full command when unrecognized" into main

parents ed7341a5 f615cf31
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;
}