Add log messages 84/119184/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Mar 2017 02:39:08 +0000 (11:39 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Mar 2017 02:39:08 +0000 (11:39 +0900)
Change-Id: I9cc598c0b9252b16946aa93771290538854ddd68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/widget_app.c

index 3911a6d..6cedfa8 100755 (executable)
@@ -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,