diff --git a/fml/memory/thread_checker.h b/fml/memory/thread_checker.h index 5290fc2ba8115..3de97f2d2188d 100644 --- a/fml/memory/thread_checker.h +++ b/fml/memory/thread_checker.h @@ -57,7 +57,7 @@ class ThreadChecker final { char actual_thread[buffer_length]; if (0 == pthread_getname_np(current_thread, actual_thread, buffer_length) && - 0 == pthread_getname_np(self_, actual_thread, buffer_length)) { + 0 == pthread_getname_np(self_, expected_thread, buffer_length)) { FML_DLOG(ERROR) << "IsCreationThreadCurrent expected thread: '" << expected_thread << "' actual thread:'" << actual_thread << "'";