Skip to content

Commit f9469f9

Browse files
njzhangyifeiAndroid (Google) Code Review
authored andcommitted
Merge "sf: fix misleading log for set thread name" into main
2 parents dd09097 + 133684c commit f9469f9

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)