memcpy(dest, test_disk, size);
fd->seek_pos += rd_len;
- LOG_INFO("Read: real[%ld] expected[%ld]\n", rd_len, size);
+ LOG_INFO("Read: real[%zd] expected[%zd]\n", rd_len, size);
return rd_len;
}
memcpy(test_disk, src, wr_len);
fd->seek_pos += wr_len;
- LOG_INFO("Write: real[%ld] expected[%ld]\n", wr_len, size);
+ LOG_INFO("Write: real[%zd] expected[%zd]\n", wr_len, size);
return wr_len;
}
*/
if (save_buf)
{
- LOG_INFO("Saved content..form [%d] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
+ LOG_INFO("Saved content..form [%ld] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
kfile_read(fd, save_buf, size);
}
if (kfile_write(fd, save_buf, size) != size)
goto kfile_test_end;
- LOG_INFO("Restore content..form [%d] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
+ LOG_INFO("Restore content..form [%ld] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
}
/* TEST 1 END. */
/* TEST 2 BEGIN. */
- LOG_INFO("Test 2: write from pos [%d] to [%ld]\n", fd->size/2 , fd->size/2 + size);
+ LOG_INFO("Test 2: write from pos [%ld] to [%ld]\n", fd->size/2 , fd->size/2 + size);
/*
* Go to half test size.
{
kfile_read(fd, save_buf, size);
kfile_seek(fd, -(kfile_off_t)size, KSM_SEEK_CUR);
- LOG_INFO("Saved content..form [%d] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
+ LOG_INFO("Saved content..form [%ld] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
}
/*
if (kfile_write(fd, save_buf, size) != size)
goto kfile_test_end;
- LOG_INFO("Restore content..form [%d] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
+ LOG_INFO("Restore content..form [%ld] to [%ld]\n", fd->seek_pos, fd->seek_pos + size);
}
/* TEST 2 END. */
/* TEST 3 BEGIN. */
- LOG_INFO("Test 3: write outside of fd->size limit [%d]\n", fd->size);
+ LOG_INFO("Test 3: write outside of fd->size limit [%ld]\n", fd->size);
LOG_INFO("This test should FAIL!, you must see an assertion fail message.\n");
/*
{
kfile_read(fd, save_buf, len);
kfile_seek(fd, -len, KSM_SEEK_CUR);
- LOG_INFO("Saved content..form [%d] to [%d]\n", fd->seek_pos, fd->seek_pos + len);
+ LOG_INFO("Saved content..form [%ld] to [%ld]\n", fd->seek_pos, fd->seek_pos + len);
}
/*
if ((kfile_off_t)kfile_write(fd, save_buf, len) != len)
goto kfile_test_end;
- LOG_INFO("Restore content..form [%d] to [%d]\n", fd->seek_pos, fd->seek_pos + len);
+ LOG_INFO("Restore content..form [%ld] to [%ld]\n", fd->seek_pos, fd->seek_pos + len);
}
/* TEST 3 END. */