*/
if (kfile_read(f, buf, size) != size)
return false;
+
kfile_seek(f, -(kfile_off_t)size, KSM_SEEK_CUR);
/*
for (size_t i = 0; i < size; i++)
if (buf[i] != (i & 0xff))
return false;
-
return true;
}
if (save_buf)
{
kfile_read(fd, save_buf, size);
- LOG_INFO("Saved content..form [%lu] to [%lu]\n", fd->seek_pos, fd->seek_pos + size);
+ LOG_INFO("Saved content..form [%ld] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
}
/* TEST 1 BEGIN. */
- LOG_INFO("Test 1: write from pos 0 to [%lu]\n", size);
+ LOG_INFO("Test 1: write from pos 0 to [%ld]\n", (long)size);
/*
* Seek to addr 0.
kfile_test_end:
kfile_close(fd);
- LOG_ERR("One kfile_test fail!\n");
+ LOG_ERR("One kfile_test failed!\n");
return EOF;
}