Skip to content

Commit 133684c

Browse files
committed
sf: fix misleading log for set thread name
= pthread_setname_np returns 0 on success Test: build Bug: 324130008 Change-Id: I5ce1ffa8e72308809cf9e7a7ac44ba61ea8be448
1 parent 8b159e5 commit 133684c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • services/surfaceflinger/Scheduler/src

services/surfaceflinger/Scheduler/src/Timer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ bool Timer::dispatch() {
159159
ALOGW("Failed to set SCHED_FIFO on dispatch thread");
160160
}
161161

162-
if (pthread_setname_np(pthread_self(), "TimerDispatch")) {
162+
if (pthread_setname_np(pthread_self(), "TimerDispatch") != 0) {
163163
ALOGW("Failed to set thread name on dispatch thread");
164164
}
165165

0 commit comments

Comments
 (0)