- 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@xxxxxxxxxx> --- src/include/rt-sched.h | 6 +++--- src/pi_tests/pi_stress.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/rt-sched.h b/src/include/rt-sched.h index 9cf0e3a937e5..767b1d8df485 100644 --- a/src/include/rt-sched.h +++ b/src/include/rt-sched.h @@ -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, diff --git a/src/pi_tests/pi_stress.c b/src/pi_tests/pi_stress.c index 6f8c5632bdd7..74e7bde0c21f 100644 --- a/src/pi_tests/pi_stress.c +++ b/src/pi_tests/pi_stress.c @@ -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; -- 2.49.0