summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgcompat/cxx_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcompat/cxx_thread.c b/libgcompat/cxx_thread.c
index 105e4c5..496a0bb 100644
--- a/libgcompat/cxx_thread.c
+++ b/libgcompat/cxx_thread.c
@@ -28,7 +28,7 @@ static void create_key(void)
{
int res = pthread_key_create(&key, run_dtors);
- GCOMPAT__assert_with_reason(res, "No key for thread_atexit list");
+ GCOMPAT__assert_with_reason(!res, "No key for thread_atexit list: %d\n", res);
}
/**