taskset: fix printf format mismatch in !FEATURE_TASKSET_FANCY config. closes 14616
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5fe20cf321
commit
55f969a006
@ -55,7 +55,6 @@
|
|||||||
* Not yet implemented:
|
* Not yet implemented:
|
||||||
* -a/--all-tasks (affect all threads)
|
* -a/--all-tasks (affect all threads)
|
||||||
* needs to get TIDs from /proc/PID/task/ and use _them_ as "pid" in sched_setaffinity(pid)
|
* needs to get TIDs from /proc/PID/task/ and use _them_ as "pid" in sched_setaffinity(pid)
|
||||||
* -c/--cpu-list (specify CPUs via "1,3,5-7")
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
@ -91,7 +90,7 @@ static char *from_mask(const ul *mask, unsigned sz_in_bytes)
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define TASKSET_PRINTF_MASK "%lx"
|
#define TASKSET_PRINTF_MASK "%lx"
|
||||||
static unsigned long long from_mask(ul *mask, unsigned sz_in_bytes UNUSED_PARAM)
|
static unsigned long from_mask(ul *mask, unsigned sz_in_bytes UNUSED_PARAM)
|
||||||
{
|
{
|
||||||
return *mask;
|
return *mask;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user