From 662e7b217fbf2775c2e1b1b6748700274675cab6 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 2 Jan 2025 22:25:29 -0800 Subject: [PATCH] Remove pthread_setcanceltype() from non-dbg strace --- libc/thread/pthread_setcanceltype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/thread/pthread_setcanceltype.c b/libc/thread/pthread_setcanceltype.c index f65187104..6aad36c6e 100644 --- a/libc/thread/pthread_setcanceltype.c +++ b/libc/thread/pthread_setcanceltype.c @@ -76,8 +76,10 @@ errno_t pthread_setcanceltype(int type, int *oldtype) { err = EINVAL; break; } +#ifdef MODE_DBG STRACE("pthread_setcanceltype(%s, [%s]) → %s", DescribeCancelType(alloca(12), 0, &type), DescribeCancelType(alloca(12), err, oldtype), DescribeErrno(err)); +#endif return err; }