]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/lfs-test.c
make Sherlock compilable on Darwin without hacks due to missing direct IO
[libucw.git] / ucw / lfs-test.c
index 9646c3651a66a661d6bc05b1dcac4fe486b6107b..8ef657d7f0f1eb7725cb0173c5802dd27e228421 100644 (file)
@@ -25,7 +25,7 @@ int main(void)
        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);
@@ -41,11 +41,11 @@ int main(void)
        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))
@@ -56,7 +56,7 @@ int main(void)
                        fflush(stdout);
                }
        }
-       log(L_DEBUG, "Done");
+       msg(L_DEBUG, "Done");
 
        bclose(b);
        return 0;