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

@@ -85,7 +85,7 @@ _button_cb_begin(void *data, Evas_Object *obj __UNUSED__,
drive = ecdb_combo_selected_get(ECDB_PROJECT(proj)->drive_combo);
if (drive < 0)
{
printf("Choose a drive!\n");
EINA_ERROR_PDBG("Choose a drive!\n");
edje_object_part_text_set(page->image, "progress_text",
"Choose a Drive!");
return;
@@ -102,7 +102,7 @@ _button_cb_begin(void *data, Evas_Object *obj __UNUSED__,
edje_object_part_text_set(page->image, "progress_text", buf);
if (!ecdb_aquire_drive(ECDB_PROJECT(proj), drive))
{
printf("Couldn't grab drive!\n");
EINA_ERROR_PWARN("Couldn't grab drive!\n");
edje_object_part_text_set(page->image, "progress_text",
"Couldn't grab the drive!");
return;
@@ -286,14 +286,14 @@ ecdb_burn_image_cleanup(Ecdb_Page *page)
if (!page)
{
printf("ecdb_burn_image_cleanup: NULL page!\n");
EINA_ERROR_PWARN("ecdb_burn_image_cleanup: NULL page!\n");
return;
}
proj = evas_object_data_get(page->image, "proj");
if (!proj)
{
printf("ecdb_burn_image_cleanup: NULL proj!\n");
EINA_ERROR_PWARN("ecdb_burn_image_cleanup: NULL proj!\n");
return;
}