From: Hwankyu Jhun Date: Thu, 16 Mar 2017 02:39:08 +0000 (+0900) Subject: Add log messages X-Git-Tag: accepted/tizen/common/20170316.161703~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85b92fd555cdf4365e238cf949f50c5e58497c86;p=platform%2Fcore%2Fappfw%2Fappcore-widget.git Add log messages Change-Id: I9cc598c0b9252b16946aa93771290538854ddd68 Signed-off-by: Hwankyu Jhun --- diff --git a/src/widget_app.c b/src/widget_app.c index 3911a6d..6cedfa8 100755 --- a/src/widget_app.c +++ b/src/widget_app.c @@ -455,8 +455,10 @@ static int __instance_create(widget_class_h handle, const char *id, const char * bundle *content_info = NULL; wc = (widget_context_s *)calloc(1, sizeof(widget_context_s)); - if (!wc) + if (!wc) { + _E("Out of memory"); return WIDGET_ERROR_OUT_OF_MEMORY; + } wc->state = WC_READY; wc->id = strdup(id); @@ -473,6 +475,7 @@ static int __instance_create(widget_class_h handle, const char *id, const char * ret = handle->ops.create(wc, content_info, w, h, handle->user_data); if (ret < 0) { + _W("Create callback resturns error(%d)", ret); /* TODO send abort */ } else { ret = __send_update_status(handle->classid, wc->id,