diff options
author | 2024-02-06 14:49:04 -0800 | |
---|---|---|
committer | 2024-02-06 14:49:04 -0800 | |
commit | 133684cc7ebb5e511d8adee7b7af8b3da482cb57 (patch) | |
tree | b793a1c965374b33a5fbb83614a0be75e7eaad73 | |
parent | 8b159e5effb5a16aa990d7cce70ad94226cab448 (diff) |
sf: fix misleading log for set thread name
= pthread_setname_np returns 0 on success
Test: build
Bug: 324130008
Change-Id: I5ce1ffa8e72308809cf9e7a7ac44ba61ea8be448
-rw-r--r-- | services/surfaceflinger/Scheduler/src/Timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/Scheduler/src/Timer.cpp b/services/surfaceflinger/Scheduler/src/Timer.cpp index 09e8a1ebe0..eeb9c60d15 100644 --- a/services/surfaceflinger/Scheduler/src/Timer.cpp +++ b/services/surfaceflinger/Scheduler/src/Timer.cpp @@ -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"); } |