sched/pthread/pthread_setaffinity.c: Fix a syslog format
This commit is contained in:
parent
f13ee2848d
commit
e4c2494a74
@ -25,6 +25,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <errno.h>
|
||||
@ -69,12 +70,12 @@ int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize,
|
||||
{
|
||||
int ret;
|
||||
|
||||
sinfo("thread ID=%d cpusetsize=%d cpuset=%p\n",
|
||||
(int)thread, (int)cpusetsize, cpusetsize);
|
||||
|
||||
DEBUGASSERT(thread > 0 && cpusetsize == sizeof(cpu_set_t) &&
|
||||
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
|
||||
* value.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user