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

Commit 010c36d2 authored by Stan Rokita's avatar Stan Rokita
Browse files

Fix the format specifier in assert log statements

There are two ALOG_ASSERT calls in the HalProxyCallback::postEvents
method that do not have the correct format specifier types. This causes
a build error if you try to build with debug logs.

Test: Build and load onto device
Change-Id: I793b6fcd72dd13b07422af0e292a373a66b2c200
parent 008e2862
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -652,12 +652,12 @@ void HalProxyCallback::postEvents(const std::vector<Event>& events, ScopedWakelo
    if (numWakeupEvents > 0) {
        ALOG_ASSERT(wakelock.isLocked(),
                    "Wakeup events posted while wakelock unlocked for subhal"
                    " w/ index %zu.",
                    " w/ index %" PRId32 ".",
                    mSubHalIndex);
    } else {
        ALOG_ASSERT(!wakelock.isLocked(),
                    "No Wakeup events posted but wakelock locked for subhal"
                    " w/ index %zu.",
                    " w/ index %" PRId32 ".",
                    mSubHalIndex);
    }
    mHalProxy->postEventsToMessageQueue(processedEvents, numWakeupEvents, std::move(wakelock));