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

Commit 133684cc authored by Yifei Zhang's avatar Yifei Zhang
Browse files

sf: fix misleading log for set thread name

= pthread_setname_np returns 0 on success

Test: build
Bug: 324130008
Change-Id: I5ce1ffa8e72308809cf9e7a7ac44ba61ea8be448
parent 8b159e5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ bool Timer::dispatch() {
        ALOGW("Failed to set SCHED_FIFO on dispatch thread");
    }

    if (pthread_setname_np(pthread_self(), "TimerDispatch")) {
    if (pthread_setname_np(pthread_self(), "TimerDispatch") != 0) {
        ALOGW("Failed to set thread name on dispatch thread");
    }