fix ulong64 related format errors

This commit is contained in:
Karel Miko 2017-05-09 23:23:31 +02:00
parent af4f6b374d
commit 9d2b352867
2 changed files with 4 additions and 4 deletions

View File

@ -1073,11 +1073,11 @@ static int der_choice_test(void)
for (y = 0; y < 7; y++) { for (y = 0; y < 7; y++) {
if (types[y].used && y != (x>6?x-7:x)) { 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; return 1;
} }
if (!types[y].used && y == (x>6?x-7:x)) { 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; return 1;
} }
} }

View File

@ -111,12 +111,12 @@ void tally_results(int type)
} else if (type == 1) { } else if (type == 1) {
for (x = 0; x < no_results; x++) { for (x = 0; x < no_results; x++) {
printf 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 { } else {
for (x = 0; x < no_results; x++) { for (x = 0; x < no_results; x++) {
printf 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);
} }
} }
} }