Commit 608d393a authored by Pedro Gonnet's avatar Pedro Gonnet Committed by Matthieu Schaller
Browse files

Be a bit more verbose.

parent ad9169ef
......@@ -65,6 +65,10 @@ int main(int argc, char *argv[]) {
struct dump d;
dump_init(&d, filename, 1024);
/* Print the page size for reference. */
printf("Will dump %i bytes, page size is %zi bytes.\n",
num_runs * chunk_size * 7, sysconf(_SC_PAGE_SIZE));
/* Dump numbers in chunks. */
for (int run = 0; run < num_runs; run++) {
......@@ -95,6 +99,9 @@ int main(int argc, char *argv[]) {
#else
int main(int argc, char *argv[]) { return 0; }
int main(int argc, char *argv[]) {
printf("No posix_fallocate, not testing anything.\n");
return 0;
}
#endif /* HAVE_POSIX_FALLOCATE */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment