Browse Source

fix ulong64 related format errors

Karel Miko 8 years ago
parent
commit
9d2b352867
2 changed files with 4 additions and 4 deletions
  1. 2 2
      testprof/der_tests.c
  2. 2 2
      testprof/x86_prof.c

+ 2 - 2
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;
            }
       }

+ 2 - 2
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);
       }
    }
 }