exactness: Added message notifying about rec file error

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 66371
This commit is contained in:
Aharon Hillel 2011-12-20 08:58:02 +00:00 committed by Tom Hacohen
parent 21b1c61796
commit 979d50831d
1 changed files with 11 additions and 3 deletions

View File

@ -53,10 +53,18 @@ write_events(const char *filename, Lists_st *vr_list)
{
_data_descriptors_init();
Eet_File *fp = eet_open(filename, EET_FILE_MODE_WRITE);
eet_data_write(fp, desc->_lists_descriptor, CACHE_FILE_ENTRY, vr_list,
EINA_TRUE);
if (fp)
{
eet_data_write(fp, desc->_lists_descriptor, CACHE_FILE_ENTRY, vr_list,
EINA_TRUE);
eet_close(fp);
}
else
{
printf("Failed to create record file <%s>.\n", filename);
}
eet_close(fp);
_data_descriptors_shutdown();
}