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

Commit d472e280 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

MTP: Don't dump data packets twice in debug output.



Change-Id: I49b383d39aea101a58ae6902952ba91b44e7dc3b
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 0181726d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -373,7 +373,6 @@ int MtpDataPacket::readDataHeader(int fd) {
int MtpDataPacket::write(int fd) {
    MtpPacket::putUInt32(MTP_CONTAINER_LENGTH_OFFSET, mPacketSize);
    MtpPacket::putUInt16(MTP_CONTAINER_TYPE_OFFSET, MTP_CONTAINER_TYPE_DATA);
    dump();
    // send header separately from data
    int ret = ::write(fd, mBuffer, MTP_CONTAINER_HEADER_SIZE);
    if (ret == MTP_CONTAINER_HEADER_SIZE)
+0 −1
Original line number Diff line number Diff line
@@ -63,7 +63,6 @@ static const CodeEntry sOperationCodes[] = {
};

static const CodeEntry sFormatCodes[] = {
    { "MTP_OPERATION_GET_DEVICE_INFO",              0x1001 },
    { "MTP_FORMAT_UNDEFINED",                       0x3000 },
    { "MTP_FORMAT_ASSOCIATION",                     0x3001 },
    { "MTP_FORMAT_SCRIPT",                          0x3002 },