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

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

Merge "Refactor FdToString callsite" into main

parents d431fc66 1e1d3f72
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -3585,10 +3585,10 @@ void AudioFlinger::dumpToThreadLog_l(const sp<IAfThreadBase> &thread)
{
{
    constexpr int THREAD_DUMP_TIMEOUT_MS = 2;
    constexpr int THREAD_DUMP_TIMEOUT_MS = 2;
    audio_utils::FdToString fdToString("- ", THREAD_DUMP_TIMEOUT_MS);
    audio_utils::FdToString fdToString("- ", THREAD_DUMP_TIMEOUT_MS);
    const int fd = fdToString.fd();
    const int fd = fdToString.borrowFdUnsafe();
    if (fd >= 0) {
    if (fd >= 0) {
        thread->dump(fd, {} /* args */);
        thread->dump(fd, {} /* args */);
        mThreadLog.logs(-1 /* time */, fdToString.getStringAndClose());
        mThreadLog.logs(-1 /* time */, fdToString.closeAndGetString());
    }
    }
}
}