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

Commit 17927df5 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Effect AIDL: Fix a couple logging statements

Since the ternary conditional has lower precedence than "<<",
we need to add parentheses.

Bug: 264618800
Change-Id: Idc10c0d231057a74e41d0a10bf20e1e28c1ce84e
Test: TreeHugger
parent 7594ec0d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -86,14 +86,14 @@ RetCode EffectThread::handleStartStop(bool stop) {
    {
        std::lock_guard lg(mThreadMutex);
        if (stop == mStop) {
            LOG(WARNING) << __func__ << " already " << stop ? "stop" : "start";
            LOG(WARNING) << __func__ << " already " << (stop ? "stop" : "start");
            return RetCode::SUCCESS;
        }
        mStop = stop;
    }

    mCv.notify_one();
    LOG(DEBUG) << stop ? "stop done" : "start done";
    LOG(DEBUG) << (stop ? "stop done" : "start done");
    return RetCode::SUCCESS;
}