From 9d2b352867822c6b0639abc89a9694bd66a0aa05 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Tue, 9 May 2017 23:23:31 +0200 Subject: [PATCH] fix ulong64 related format errors --- testprof/der_tests.c | 4 ++-- testprof/x86_prof.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testprof/der_tests.c b/testprof/der_tests.c index 0d2b9b87..f3713f56 100644 --- a/testprof/der_tests.c +++ b/testprof/der_tests.c @@ -1073,11 +1073,11 @@ static int der_choice_test(void) for (y = 0; y < 7; y++) { if (types[y].used && y != (x>6?x-7:x)) { - fprintf(stderr, "CHOICE, flag %lu in trial %lu was incorrectly set to one\n", y, x); + fprintf(stderr, "CHOICE, flag %u in trial %u was incorrectly set to one\n", y, x); return 1; } if (!types[y].used && y == (x>6?x-7:x)) { - fprintf(stderr, "CHOICE, flag %lu in trial %lu was incorrectly set to zero\n", y, x); + fprintf(stderr, "CHOICE, flag %u in trial %u was incorrectly set to zero\n", y, x); return 1; } } diff --git a/testprof/x86_prof.c b/testprof/x86_prof.c index 671ecb2d..09f8f4ae 100644 --- a/testprof/x86_prof.c +++ b/testprof/x86_prof.c @@ -111,12 +111,12 @@ void tally_results(int type) } else if (type == 1) { for (x = 0; x < no_results; x++) { printf - ("%-20s[%3d]: Encrypt at %5lu, Decrypt at %5lu\n", cipher_descriptor[results[x].id].name, cipher_descriptor[results[x].id].ID, results[x].spd1, results[x].spd2); + ("%-20s[%3d]: Encrypt at %5"PRI64"u, Decrypt at %5"PRI64"u\n", cipher_descriptor[results[x].id].name, cipher_descriptor[results[x].id].ID, results[x].spd1, results[x].spd2); } } else { for (x = 0; x < no_results; x++) { printf - ("%-20s: Process at %5lu\n", hash_descriptor[results[x].id].name, results[x].spd1 / 1000); + ("%-20s: Process at %5"PRI64"u\n", hash_descriptor[results[x].id].name, results[x].spd1 / 1000); } } }