--- old_rt-tests/src/cyclictest/cyclictest.c 2019-08-14 20:28:48.547725419 +0200 +++ new_rt-tests/src/cyclictest/cyclictest.c 2019-08-14 20:20:58.415297592 +0200 @@ -985,6 +985,7 @@ cpu_set_t mask; pthread_t thread; unsigned long smi_now, smi_old; + int status; /* if we're running in numa mode, set our memory node */ if (par->node != -1) @@ -994,9 +995,9 @@ CPU_ZERO(&mask); CPU_SET(par->cpu, &mask); thread = pthread_self(); - if (pthread_setaffinity_np(thread, sizeof(mask), &mask) == -1) - warn("Could not set CPU affinity to CPU #%d\n", - par->cpu); + if ((status = pthread_setaffinity_np(thread, sizeof(mask), &mask)) != 0) + warn("Could not set CPU affinity to CPU #%d: %s (%d)\n", + par->cpu, strerror(status), status); } interval.tv_sec = par->interval / USEC_PER_SEC;