printf ("(page-merge-par) sort chunk %zu\n", i);
/* Write this chunk to a file. */
- snprintf (fn, sizeof fn, "buf%d", i);
+ snprintf (fn, sizeof fn, "buf%zu", i);
create (fn, CHUNK_SIZE);
fd = open (fn);
if (fd < 0)
}
/* Read chunk back from file. */
- snprintf (fn, sizeof fn, "buf%d", i);
+ snprintf (fn, sizeof fn, "buf%zu", i);
fd = open (fn);
if (fd < 0)
{
for (i = 0; i < 10; i++)
{
shuffle ();
- printf ("(page-shuffle) shuffle %d: cksum=%lu\n",
+ printf ("(page-shuffle) shuffle %zu: cksum=%lu\n",
i, cksum (buf, sizeof buf));
}