From bf435155898949bb78827d667bc9a12072a559a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 18 Sep 2024 16:57:17 +0200 Subject: [PATCH] pipewire: thread: fix `strerror()` argument --- src/pipewire/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/thread.c b/src/pipewire/thread.c index 4ab00d681..defa6a686 100644 --- a/src/pipewire/thread.c +++ b/src/pipewire/thread.c @@ -117,7 +117,7 @@ static struct spa_thread *impl_create(void *object, pw_log_warn("pthread_setname error: %s", strerror(err)); if ((str = spa_dict_lookup(props, SPA_KEY_THREAD_AFFINITY)) != NULL && (err = thread_setaffinity(pt, str)) != 0) - pw_log_warn("pthread_setaffinity error: %s", strerror(err)); + pw_log_warn("pthread_setaffinity error: %s", strerror(-err)); } return (struct spa_thread*)pt; }