Use eina error logging, instead of plain printfs.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user