sched/pthread/pthread_setaffinity.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-11-22 14:59:58 +09:00 committed by Xiang Xiao
parent f13ee2848d
commit e4c2494a74
1 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h>
#include <pthread.h> #include <pthread.h>
#include <sched.h> #include <sched.h>
#include <errno.h> #include <errno.h>
@ -69,12 +70,12 @@ int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize,
{ {
int ret; int ret;
sinfo("thread ID=%d cpusetsize=%d cpuset=%p\n",
(int)thread, (int)cpusetsize, cpusetsize);
DEBUGASSERT(thread > 0 && cpusetsize == sizeof(cpu_set_t) && DEBUGASSERT(thread > 0 && cpusetsize == sizeof(cpu_set_t) &&
cpuset != NULL); cpuset != NULL);
sinfo("thread ID=%d cpusetsize=%zu cpuset=%ju\n",
(int)thread, cpusetsize, (uintmax_t)*cpuset);
/* Let nxsched_set_affinity do all of the work, adjusting the return /* Let nxsched_set_affinity do all of the work, adjusting the return
* value. * value.
*/ */