From 69ee12e96b1e7a2b61c3dd07ce8d1ae36eb32deb Mon Sep 17 00:00:00 2001 From: Jongmin Lee Date: Thu, 6 Jun 2013 17:54:44 +0900 Subject: [PATCH] add log for abort on errors Change-Id: Ie262390d68170123d1db92202b05b16e76ad4a9a --- src/lib/elm_widget.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 6607138..f72d2f0 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -330,7 +330,11 @@ _elm_widget_sub_object_del_func(Evas_Object *obj, if (getenv("ELM_ERROR_ABORT")) abort_on_warn = 1; else abort_on_warn = 0; } - if (abort_on_warn == 1) abort(); + if (abort_on_warn == 1) + { + ERR("### EFL abort on errors ###\n"); + abort(); + } return EINA_FALSE; } @@ -3681,7 +3685,11 @@ elm_widget_is_check(const Evas_Object *obj) if (getenv("ELM_ERROR_ABORT")) abort_on_warn = 1; else abort_on_warn = 0; } - if (abort_on_warn == 1) abort(); + if (abort_on_warn == 1) + { + ERR("### EFL abort on errors ###\n"); + abort(); + } return EINA_FALSE; } @@ -3718,7 +3726,11 @@ elm_widget_type_check(const Evas_Object *obj, if (getenv("ELM_ERROR_ABORT")) abort_on_warn = 1; else abort_on_warn = 0; } - if (abort_on_warn == 1) abort(); + if (abort_on_warn == 1) + { + ERR("### EFL abort on errors ###\n"); + abort(); + } return EINA_FALSE; } -- 2.7.4