Use eina error logging, instead of plain printfs.

This commit is contained in:
Jaime Thomas
2009-02-23 01:22:02 +00:00
parent ee5e3024c5
commit 73fe193351
16 changed files with 173 additions and 158 deletions

View File

@@ -65,7 +65,7 @@ _button_cb_begin(void *data, Evas_Object *o __UNUSED__,
idx = ecdb_combo_selected_get(ECDB_PROJECT(proj)->drive_combo);
if (idx < 0)
{
printf("Choose a drive!\n");
EINA_ERROR_PDBG("Choose a drive!\n");
edje_object_part_text_set(page->erase, "progress_text",
"Choose a Drive!");
return;
@@ -73,7 +73,7 @@ _button_cb_begin(void *data, Evas_Object *o __UNUSED__,
if (!ecdb_aquire_drive(ECDB_PROJECT(proj), idx))
{
printf("Couldn't grab drive!\n");
EINA_ERROR_PDBG("Couldn't grab drive!\n");
edje_object_part_text_set(page->erase, "progress_text",
"Couldn't grab the drive!");
return;
@@ -83,7 +83,7 @@ _button_cb_begin(void *data, Evas_Object *o __UNUSED__,
// TODO: Error Messages here
if (!ecdb_erase_disc(proj, page))
{
printf("Disc not erasable!\n");
EINA_ERROR_PINFO("Disc not erasable!\n");
snprintf(buf, sizeof(buf), "Disc not erasable!");
edje_object_part_text_set(page->erase, "progress_text", buf);
burn_drive_release(ECDB_PROJECT(proj)->drive->tangible[0].drive, 0);
@@ -182,14 +182,14 @@ ecdb_erase_cleanup(Ecdb_Page *page)
if (!page)
{
printf("ecdb_erase_cleanup: NULL page!\n");
EINA_ERROR_PWARN("ecdb_erase_cleanup: NULL page!\n");
return;
}
proj = evas_object_data_get(page->erase, "proj");
if (!proj)
{
printf("ecdb_erase_cleanup: NULL proj!\n");
EINA_ERROR_PWARN("ecdb_erase_cleanup: NULL proj!\n");
return;
}