summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pthread_support.c6
-rw-r--r--win32_threads.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/pthread_support.c b/pthread_support.c
index a009a1db..b2baf001 100644
--- a/pthread_support.c
+++ b/pthread_support.c
@@ -506,8 +506,7 @@ GC_INNER void GC_start_mark_threads_inner(void)
# endif
if (REAL_FUNC(pthread_sigmask)(SIG_BLOCK, &set, &oldset) < 0) {
- WARN("pthread_sigmask set failed, no markers started,"
- " errno= %" WARN_PRIdPTR "\n", (signed_word)errno);
+ WARN("pthread_sigmask set failed, no markers started\n", 0);
GC_markers_m1 = 0;
(void)pthread_attr_destroy(&attr);
return;
@@ -533,8 +532,7 @@ GC_INNER void GC_start_mark_threads_inner(void)
# ifndef NO_MARKER_SPECIAL_SIGMASK
/* Restore previous signal mask. */
if (REAL_FUNC(pthread_sigmask)(SIG_SETMASK, &oldset, NULL) < 0) {
- WARN("pthread_sigmask restore failed, errno= %" WARN_PRIdPTR "\n",
- (signed_word)errno);
+ WARN("pthread_sigmask restore failed\n", 0);
}
# endif
diff --git a/win32_threads.c b/win32_threads.c
index 69209a6b..d827de43 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -2002,8 +2002,7 @@ GC_INNER void GC_get_next_stack(char *start, char *limit,
if (sigfillset(&set) != 0)
ABORT("sigfillset failed");
if (EXPECT(pthread_sigmask(SIG_BLOCK, &set, &oldset) < 0, FALSE)) {
- WARN("pthread_sigmask set failed, no markers started,"
- " errno= %" WARN_PRIdPTR "\n", (signed_word)errno);
+ WARN("pthread_sigmask set failed, no markers started\n", 0);
GC_markers_m1 = 0;
(void)pthread_attr_destroy(&attr);
return;
@@ -2028,8 +2027,7 @@ GC_INNER void GC_get_next_stack(char *start, char *limit,
# ifndef NO_MARKER_SPECIAL_SIGMASK
/* Restore previous signal mask. */
if (EXPECT(pthread_sigmask(SIG_SETMASK, &oldset, NULL) < 0, FALSE)) {
- WARN("pthread_sigmask restore failed, errno= %" WARN_PRIdPTR "\n",
- (signed_word)errno);
+ WARN("pthread_sigmask restore failed\n", 0);
}
# endif