Use platform-independent print formats in checksum_bench.c
@@ -40,8 +40,9 @@ void simple_test() {
chk_add_chunk(input, data, sizeof(data));
checksum(input);
}
- printf("simple_test(%ld = %ldB): %ld in %ds (%.2lfM calls/s)\n",
- sizeof(data), sizeof(data), i, RUN_TIME, ((double)i/RUN_TIME)/1000000);
+ printf("simple_test(%" PRIu64 " = %" PRIu64 "B): %" PRIu64 " in %" PRId32 "s"
+ " (%.2lfM calls/s)\n", sizeof(data), sizeof(data), i, RUN_TIME,
+ ((double)i/RUN_TIME)/1000000);
}
void complex_test() {
@@ -57,6 +58,6 @@ void complex_test() {
chk_add_chunk(input, &data[30], 1391);
checksum(input);
}
- printf("complex_test(8+8+2+12+1391 = 1421B): %ld in %ds (%.2lfM calls/s)\n",
+ printf("complex_test(8+8+2+12+1391 = 1421B): %" PRIu64 " in %" PRId32 "s (%.2lfM calls/s)\n",
i, RUN_TIME, ((double)i/RUN_TIME)/1000000);
}
