@@ -56,9 +56,9 @@ struct sched_attr {
uint32_t sched_priority;
/* SCHED_DEADLINE */
- uint64_t sched_runtime;
- uint64_t sched_deadline;
- uint64_t sched_period;
+ unsigned long long sched_runtime;
+ unsigned long long sched_deadline;
+ unsigned long long sched_period;
};
int sched_setattr(pid_t pid,
@@ -1294,7 +1294,7 @@ void print_sched_attr(const char *name, struct sched_attr *sa)
printf(" priority %d\n", sa->sched_priority);
break;
case SCHED_DEADLINE:
- printf(" runtime %" PRIu64 " deadline %" PRIu64 " period %" PRIu64 "\n",
+ printf(" runtime %llu deadline %llu period %llu\n",
sa->sched_runtime, sa->sched_deadline,
sa->sched_period);
break;
- Change from PRIu64 to llu to match upstream glibc sched_attr. This change is for when we are getting the definitions from upstream glibc - Change our definition in rt-sched.h to match upstream glibc This change is for when we are using our own definition of struct sched_attr Signed-off-by: John Kacur <jkacur@redhat.com> --- src/include/rt-sched.h | 6 +++--- src/pi_tests/pi_stress.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)