if (!b)
die("Cannot create large-file");
- log(L_DEBUG, "Writing %d blocks of size %d", COUNT, BLOCK);
+ msg(L_DEBUG, "Writing %d blocks of size %d", COUNT, BLOCK);
for (i=0; i<COUNT; i++)
{
memset(block, i & 0xff, BLOCK);
if (!b)
die("Cannot create large-file");
#endif
- log(L_DEBUG, "Checking the file contents in %d tests", TESTS);
+ msg(L_DEBUG, "Checking the file contents in %d tests", TESTS);
for (i=0; i<TESTS; i++)
{
uns idx = random()%COUNT;
- sh_off_t ofs = idx*BLOCK;
+ ucw_off_t ofs = idx*BLOCK;
bseek(b, ofs, SEEK_SET);
bread(b, block, BLOCK);
if (block[17] != (idx & 0xff))
fflush(stdout);
}
}
- log(L_DEBUG, "Done");
+ msg(L_DEBUG, "Done");
bclose(b);
return 0;